

/* -- PAGE HEAD -- */
.page-head {
  padding: clamp(48px, 6vw, 80px) 0 clamp(30px, 4vw, 48px);
  background: linear-gradient(180deg, #141820, #0c0e13);
  border-bottom: 1px solid rgba(232, 56, 79, 0.15);
}

.page-head.center {
  text-align: center;
}

.page-head.center .lead {
  margin-inline: auto;
}

.page-head h1 {
  font-size: clamp(30px, 4.4vw, 50px);
  margin: 0 0 14px;
}

/* -- GALLERY -- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.gallery-card {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid rgba(232, 56, 79, 0.12);
  transition: transform .4s cubic-bezier(.2, .7, .3, 1), box-shadow .4s;
}

.gallery-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 36px rgba(232, 56, 79, 0.12);
  z-index: 5;
}

.gallery-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #0c0e13;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .3, 1);
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-card figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 16px 14px;
  background: linear-gradient(0deg, rgba(10, 12, 16, .9) 0%, transparent 100%);
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: all .35s;
}

.gallery-card:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

.gallery-card figcaption strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .5);
}

.gallery-card figcaption span {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, .8);
  margin-top: 3px;
}

.gallery-media::after {
  content: "\f00e";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.7);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(12, 14, 19, .92);
  color: var(--brand);
  font-size: 16px;
  opacity: 0;
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}

.gallery-card:hover .gallery-media::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* -- LIGHTBOX -- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(8, 10, 14, .92);
  backdrop-filter: blur(6px);
}

.lightbox.open {
  display: grid;
  animation: lb-fade .28s ease;
}

@keyframes lb-fade {
  from {
    opacity: 0;
  }
}

.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 78vh;
  width: auto;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  animation: lb-pop .34s cubic-bezier(.2, .7, .3, 1);
}

@keyframes lb-pop {
  from {
    opacity: 0;
    transform: scale(.94);
  }
}

.lightbox-caption {
  margin-top: 16px;
  max-width: 640px;
  text-align: center;
  color: rgba(255, 255, 255, .86);
  font-size: 15px;
}

.lightbox-caption strong {
  display: block;
  font-family: Rajdhani, sans-serif;
  font-size: 21px;
  color: #fff;
  margin-bottom: 4px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 17px;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, .24);
  transform: scale(1.06);
}

.lightbox-close {
  top: 22px;
  right: 22px;
}

.lightbox-prev {
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  transform: translateY(-50%) scale(1.06);
}

@media (max-width: 620px) {

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 22px;
    transform: none;
  }

  .lightbox-prev:hover,
  .lightbox-next:hover {
    transform: scale(1.06);
  }
}