.gallery-hero {
  position: relative;
  min-height: 800px;
  height: 800px;
  overflow: hidden;
  background: #000;
}

.gallery-hero-background,
.gallery-hero-overlay {
  position: absolute;
  inset: 0;
}

.gallery-hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.03);
  animation: galleryHeroZoom 12s ease-in-out infinite alternate;
}

@keyframes galleryHeroZoom {
  from {
    transform: scale(1.03);
  }

  to {
    transform: scale(1.09);
  }
}

.gallery-hero-overlay {
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.84),
      rgba(0, 0, 0, 0.45) 50%,
      rgba(0, 0, 0, 0.72)
    ),
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.58),
      transparent 40%,
      rgba(0, 0, 0, 0.9)
    );
}

.gallery-hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: min(800px, 90%);
  text-align: center;
  transform: translate(-50%, -42%);
  margin-top: 70px;
}

.gallery-hero-label {
  display: block;
  margin-bottom: 23px;
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 5px;
}

.gallery-hero h1 {
  color: var(--white);
  font-family: var(--chancery);
  font-size: clamp(55px, 6vw, 96px);
  font-weight: 500;
  line-height: 1.1;
}

.gallery-hero-content p {
  max-width: 500px;
  margin: 30px auto 0;
  color: var(--white);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 1px;
}

.gallery-hero-line {
  width: 55px;
  height: 1px;
  margin: 33px auto 0;
  background: var(--gold);
}

.gallery-categories {
  padding: 125px 0 120px;
  background: var(--maroon);
  overflow: hidden;
}

.gallery-section-heading {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 65px;
  text-align: center;
}

.gallery-section-heading .section-label {
  font-size: 15px;
}

.gallery-section-heading h2 {
  margin-top: 17px;
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(55px, 6vw, 78px);
  font-weight: 500;
  line-height: 0.9;
}

.gallery-section-heading p {
  margin: 25px auto 0;
  color: var(--white);
  font-size: 15px;
  line-height: 1.9;
}

.gallery-category-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
}

.gallery-category-viewport {
  width: 100%;
  overflow: hidden;
}

.gallery-category-track {
  display: flex;
  align-items: stretch;
  gap: 22px;
  width: max-content;
  will-change: transform;
}

.gallery-category {
  position: relative;
  flex: 0 0 360px;
  width: 360px;
  height: 400px;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #111;
  cursor: pointer;
  text-align: left;
  opacity: 0.48;
  transform: scale(0.88);
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(.2, .7, .2, 1);
}

.gallery-category.active {
  opacity: 1;
  transform: scale(1);
}

.gallery-category img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 1s ease,
    filter 1s ease;
}


.gallery-category-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.12),
      rgba(0, 0, 0, 0.28) 40%,
      rgba(0, 0, 0, 0.9)
    );
  transition: background 0.6s ease;
}

.gallery-category-content {
  position: absolute;
  right: 28px;
  bottom: 30px;
  left: 28px;
  z-index: 2;
}


.gallery-category-title {
  display: block;
  color: var(--white);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 0.95;
  transition: transform 0.5s ease;
  text-align: center;
}


.gallery-category:hover img {
  transform: scale(1.07);
  filter: saturate(0.92);
}

.gallery-category:hover .gallery-category-overlay {
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.08),
      rgba(0, 0, 0, 0.2) 40%,
      rgba(0, 0, 0, 0.82)
    );
}

.gallery-category:hover .gallery-category-title {
  transform: translateY(-7px);
}

.gallery-category-arrow {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(244, 235, 221, 0.45);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  font-size: 19px;
  cursor: pointer;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.gallery-category-arrow:hover {
  border-color: var(--gold);
  background: rgba(199, 135, 58, 0.12);
  color: var(--gold);
  transform: scale(1.06);
}

.gallery-display {
  padding: 125px 0;
  background: var(--white);
  color: var(--black);
  overflow: hidden;
}

.gallery-display-heading {
  max-width: 900px;
  margin: 0 auto 65px;
  text-align: center;
}

.gallery-display-heading h2 {
  color: var(--black);
  font-family: var(--serif);
  font-size: clamp(55px, 6vw, 78px);
  font-weight: 500;
  line-height: 0.9;
  transition: opacity 0.3s ease;
}

.gallery-display-line {
  width: 55px;
  height: 1px;
  margin: 28px auto 0;
  background: var(--gold);
}

.gallery-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.gallery-photo-grid.changing {
  opacity: 0;
  transform: translateY(12px);
}

.gallery-photo {
  position: relative;
  display: block;
  width: 100%;
  height: 320px;
  min-height: 320px;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #111;
  cursor: pointer;
}

.gallery-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition:
    transform 1s cubic-bezier(.2, .7, .2, 1),
    filter 0.6s ease;
}

.gallery-photo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition:
    opacity 0.5s ease,
    background 0.5s ease;
}

.gallery-photo-view {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 75px;
  height: 75px;
  border: 1px solid rgba(244, 235, 221, 0.7);
  border-radius: 50%;
  color: var(--white);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 2px;
  transform: scale(0.8);
  transition: transform 0.5s ease;
}

.gallery-photo:hover img {
  transform: scale(1.06);
  filter: brightness(0.82);
}

.gallery-photo:hover .gallery-photo-overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.35);
}

.gallery-photo:hover .gallery-photo-view {
  transform: scale(1);
}

.gallery-cta {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.gallery-cta-background,
.gallery-cta-overlay {
  position: absolute;
  inset: 0;
}

.gallery-cta-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-cta-overlay {
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.91),
      rgba(0, 0, 0, 0.7) 48%,
      rgba(0, 0, 0, 0.28)
    );
}

.gallery-cta-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding: 110px 0;
}

.gallery-cta-content h2 {
  margin-top: 17px;
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(55px, 6vw, 82px);
  font-weight: 500;
  line-height: 0.88;
}

.gallery-cta-content h2 span {
  display: block;
  color: var(--gold);
}

.gallery-cta-content p {
  max-width: 480px;
  margin: 28px 0 35px;
  color: #ccc;
  font-size: 15px;
  line-height: 1.95;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 90px;
  background: rgba(0, 0, 0, 0.96);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.gallery-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.gallery-lightbox-content {
  position: relative;
  width: min(1100px, 90vw);
  height: min(78vh, 750px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
}

.gallery-lightbox-close,
.gallery-lightbox-prev,
.gallery-lightbox-next {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(244, 235, 221, 0.35);
  background: rgba(0, 0, 0, 0.3);
  color: var(--white);
  cursor: pointer;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
  border-color: var(--gold);
  background: rgba(199, 135, 58, 0.12);
  color: var(--gold);
}

.gallery-lightbox-close {
  top: 30px;
  right: 35px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 27px;
  font-weight: 300;
}

.gallery-lightbox-prev,
.gallery-lightbox-next {
  top: 50%;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 19px;
  transform: translateY(-50%);
}

.gallery-lightbox-prev {
  left: 30px;
}

.gallery-lightbox-next {
  right: 30px;
}

.gallery-lightbox-caption {
  position: absolute;
  right: 0;
  bottom: -35px;
  left: 0;
  text-align: center;
}

.gallery-lightbox-caption span {
  color: rgba(244, 235, 221, 0.65);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 3px;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 1100px) {

  .gallery-category-carousel {
    gap: 18px;
  }

  .gallery-category {
    flex-basis: 320px;
    width: 320px;
    height: 370px;
  }

  .gallery-category-title {
    font-size: 38px;
  }
}

@media (max-width: 900px) {

  .gallery-hero {
    min-height: 680px;
    height: 82vh;
  }

  .gallery-section-heading {
    margin-bottom: 55px;
  }

  .gallery-category-carousel {
    gap: 12px;
  }

  .gallery-category {
    flex-basis: 300px;
    width: 300px;
    height: 350px;
  }

  .gallery-category-title {
    font-size: 35px;
  }

  .gallery-category-arrow {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
  }

  .gallery-photo-grid {
  grid-template-columns: repeat(2, 1fr);
}

  .gallery-cta {
    min-height: 600px;
  }

  .gallery-lightbox {
    padding: 60px 70px;
  }

}

@media (max-width: 768px) {

  .gallery-hero {
    min-height: 620px;
    height: 82svh;
  }

  .gallery-hero-content {
    margin-top: 55px;
  }

  .gallery-hero-label {
    font-size: 8px;
    letter-spacing: 3.5px;
  }

  .gallery-hero h1 {
    font-size: clamp(53px, 13vw, 76px);
  }

  .gallery-hero-content p {
    max-width: 380px;
    font-size: 11px;
  }


  .gallery-categories,
  .gallery-display {
    padding: 80px 0;
  }

  .gallery-section-heading h2 {
    font-size: 53px;
  }


  .gallery-category-carousel {
    gap: 8px;
  }

  .gallery-category-viewport {
    overflow: hidden;
  }

  .gallery-category-track {
    gap: 12px;
  }

  .gallery-category {
    flex-basis: 280px;
    width: 280px;
    height: 320px;
    transform: scale(0.86);
  }

  .gallery-category.active {
    transform: scale(1);
  }

  .gallery-category-content {
    right: 20px;
    bottom: 22px;
    left: 20px;
  }

  .gallery-category-title {
    font-size: 32px;
  }

  .gallery-category-arrow {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    font-size: 16px;
  }


  .gallery-display-heading {
    margin-bottom: 50px;
  }

  .gallery-display-heading h2 {
    font-size: 53px;
  }


  .gallery-photo-grid {
  grid-template-columns: 1fr;
  gap: 15px;
}

.gallery-photo {
  height: 330px;
  min-height: 330px;
}


  .gallery-cta {
    min-height: 570px;
  }

  .gallery-cta-content {
    padding: 80px 0;
  }

  .gallery-cta-content h2 {
    font-size: 57px;
  }


  .gallery-lightbox {
    padding: 60px 20px;
  }

  .gallery-lightbox-content {
    width: 100%;
    height: 70vh;
  }

  .gallery-lightbox-close {
    top: 20px;
    right: 20px;
  }

  .gallery-lightbox-prev,
  .gallery-lightbox-next {
    top: auto;
    bottom: 20px;
    width: 45px;
    height: 45px;
    transform: none;
  }

  .gallery-lightbox-prev {
    left: 20px;
  }

  .gallery-lightbox-next {
    right: 20px;
  }

  .gallery-lightbox-caption {
    bottom: -58px;
  }

}

@media (max-width: 480px) {

  .gallery-hero {
    min-height: 590px;
  }

  .gallery-hero h1 {
    font-size: 50px;
  }

  .gallery-hero-content p {
    font-size: 10px;
    line-height: 1.8;
  }


  .gallery-categories,
  .gallery-display {
    padding: 75px 0;
  }

  .gallery-section-heading h2,
  .gallery-display-heading h2 {
    font-size: 45px;
  }

  .gallery-section-heading p {
    font-size: 11px;
    line-height: 1.9;
  }


  .gallery-category-carousel {
    gap: 5px;
  }

  .gallery-category-track {
    gap: 8px;
  }

  .gallery-category {
    flex-basis: 245px;
    width: 245px;
    height: 295px;
  }

  .gallery-category-content {
    right: 18px;
    bottom: 20px;
    left: 18px;
  }

  .gallery-category-title {
    font-size: 30px;
  }

  .gallery-category-arrow {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

.gallery-photo {
  height: 280px;
  min-height: 280px;
}

  .gallery-cta {
    min-height: 530px;
  }

  .gallery-cta-content {
    padding: 70px 0;
  }

  .gallery-cta-content h2 {
    font-size: 49px;
  }

  .gallery-cta-content p {
    font-size: 11px;
  }


  .gallery-lightbox {
    padding: 55px 12px 100px;
  }

  .gallery-lightbox-content {
    height: 65vh;
  }

}