.lr-gallery-wall{
  --lr-gap: 18px;
  --lr-radius: 18px;
  --lr-shadow: 0 12px 35px rgba(0,0,0,.16);
  --lr-shadow-hover: 0 22px 50px rgba(0,0,0,.24);
  --lr-overlay: linear-gradient(180deg, rgba(6,12,22,0) 0%, rgba(6,12,22,.14) 28%, rgba(6,12,22,.72) 100%);
  --lr-bg-glass: rgba(255,255,255,.14);
  --lr-border: rgba(255,255,255,.22);
  position: relative;
}

.lr-gallery-wall__head{
  margin-bottom: 1.4rem;
}

.lr-gallery-wall__title{
  margin: 0 0 .35rem;
  font-size: clamp(1.6rem, 2vw, 2.3rem);
  line-height: 1.1;
}

.lr-gallery-wall__intro{
  opacity: .86;
}

.lr-gallery-wall__grid{
  column-count: 4;
  column-gap: var(--lr-gap);
}

.lr-gallery-wall__item{
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 var(--lr-gap);
  overflow: hidden;
  border-radius: var(--lr-radius);
  box-shadow: var(--lr-shadow);
  background: #f4f4f4;
  border: 1px solid rgba(255,255,255,.22);
  isolation: isolate;
  break-inside: avoid;
  transform: translateY(0);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.lr-gallery-wall__item:hover{
  transform: translateY(-6px);
  box-shadow: var(--lr-shadow-hover);
  border-color: rgba(255,255,255,.4);
}

.lr-gallery-wall__item::before{
  content: "";
  position: absolute;
  inset: -30% auto auto -120%;
  width: 75%;
  height: 180%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.18), rgba(255,255,255,0));
  transform: rotate(14deg);
  pointer-events: none;
  opacity: 0;
  z-index: 2;
}

.lr-gallery-wall__item:hover::before{
  opacity: 1;
  animation: lrGalleryShine .95s ease forwards;
}

.lr-gallery-wall__media{
  display: block;
  position: relative;
}

.lr-gallery-wall__media picture,
.lr-gallery-wall__media img{
  display: block;
  width: 100%;
  height: auto;
}

.lr-gallery-wall__media img{
  transition: transform .7s ease, filter .5s ease;
}

.lr-gallery-wall__item:hover .lr-gallery-wall__media img{
  transform: scale(1.04);
  filter: saturate(1.04) contrast(1.02);
}

.lr-gallery-wall__overlay{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  background: var(--lr-overlay);
  opacity: 0;
  transition: opacity .35s ease;
}

.lr-gallery-wall__item:hover .lr-gallery-wall__overlay{
  opacity: 1;
}

.lr-gallery-wall__caption-wrap{
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  max-width: calc(100% - 72px);
  color: #fff;
  transform: translateY(10px);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}

.lr-gallery-wall__item:hover .lr-gallery-wall__caption-wrap{
  transform: translateY(0);
  opacity: 1;
}

.lr-gallery-wall__eyebrow{
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .78;
}

.lr-gallery-wall__caption{
  font-size: .98rem;
  line-height: 1.3;
  font-weight: 600;
  text-wrap: balance;
}
.lr-gallery-wall__icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--lr-bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--lr-border);
  color: #fff;
  font-size: 1.9rem;
  line-height: 1;
  font-weight: 300;
  transform: translateY(10px) scale(.92);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease, background .25s ease;
}

.lr-gallery-wall__item:hover .lr-gallery-wall__icon{
  transform: translateY(0) scale(1);
  opacity: 1;
}

.lr-gallery-wall__empty{
  margin: 0;
  opacity: .7;
}

.lr-gallery-lightbox{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(7, 10, 18, .88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lr-gallery-lightbox[hidden]{
  display: none !important;
}

.lr-gallery-lightbox__stage{
  position: relative;
  max-width: min(92vw, 1600px);
  max-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lr-gallery-lightbox__stage picture,
.lr-gallery-lightbox__stage img{
  display: block;
  max-width: 100%;
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 22px 60px rgba(0,0,0,.45);
}

.lr-gallery-lightbox__close{
  position: absolute;
  top: 18px;
  right: 18px;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease;
}

.lr-gallery-lightbox__close:hover{
  transform: scale(1.06);
  background: rgba(255,255,255,.2);
}

.lr-gallery-lightbox__nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease;
}

.lr-gallery-lightbox__nav:hover{
  background: rgba(255,255,255,.2);
}

.lr-gallery-lightbox__nav--prev{
  left: 18px;
}

.lr-gallery-lightbox__nav--next{
  right: 18px;
}

.lr-gallery-lightbox__caption{
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  max-width: min(90vw, 900px);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: .95rem;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.lr-gallery-lightbox-open{
  overflow: hidden;
}

@media (max-width: 1199px){
  .lr-gallery-wall__grid{
    column-count: 3;
  }
}

@media (max-width: 767px){
  .lr-gallery-wall__grid{
    column-count: 2;
    column-gap: 12px;
  }

  .lr-gallery-wall__item{
    margin-bottom: 12px;
    border-radius: 14px;
  }

  .lr-gallery-lightbox{
    padding: 14px;
  }

  .lr-gallery-lightbox__nav{
    width: 46px;
    height: 46px;
    font-size: 1.8rem;
  }

  .lr-gallery-lightbox__nav--prev{
    left: 10px;
  }

  .lr-gallery-lightbox__nav--next{
    right: 10px;
  }

  .lr-gallery-lightbox__close{
    top: 10px;
    right: 10px;
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 479px){
  .lr-gallery-wall__grid{
    column-count: 1;
  }
}

@keyframes lrGalleryShine{
  0%{ transform: translateX(0) rotate(14deg); }
  100%{ transform: translateX(320%) rotate(14deg); }
}
