@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700&display=swap');

body {
  background:
    radial-gradient(circle at top right, rgba(219, 232, 223, 0.9), transparent 26%),
    radial-gradient(circle at left center, rgba(242, 220, 204, 0.75), transparent 24%),
    #f6f2ea;
  font-family: 'Manrope', sans-serif;
  color: #23332a;
}

.preloader {
  display: none;
}

.gallery-hero,
.gallery-highlights,
.gallery-section,
.gallery-note-band {
  position: relative;
}

.gallery-hero {
  padding: 170px 0 110px;
  background:
    linear-gradient(120deg, rgba(12, 32, 24, 0.86), rgba(12, 32, 24, 0.58)),
    url("../images/bg2.jpeg") center/cover no-repeat;
  overflow: hidden;
}

.gallery-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(215, 170, 122, 0.24), transparent 24%),
    linear-gradient(180deg, rgba(12, 32, 24, 0.05), rgba(12, 32, 24, 0.3));
}

.gallery-hero-copy {
  position: relative;
  z-index: 1;
}

.gallery-kicker,
.gallery-highlight-card span,
.gallery-item-label,
.gallery-placeholder-tag {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 700;
}

.gallery-kicker {
  color: #f0be89;
  margin-bottom: 18px;
}

.gallery-hero h1,
.gallery-title h2,
.gallery-note-panel h2,
.gallery-item-title {
  font-family: 'Cormorant Garamond', serif;
}

.gallery-hero h1 {
  color: #ffffff;
  font-size: clamp(50px, 7vw, 80px);
  line-height: 0.95;
  margin: 0 0 22px;
  max-width: 760px;
}

.gallery-intro,
.gallery-highlight-card p,
.gallery-note-panel p,
.gallery-item-caption {
  line-height: 1.9;
  font-size: 17px;
}

.gallery-intro {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.82);
}

.gallery-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.gallery-link {
  color: #ffffff;
  font-weight: 700;
}

.gallery-highlights {
  margin-top: -52px;
  padding-bottom: 30px;
  z-index: 2;
}

.gallery-highlight-card,
.gallery-item,
.gallery-note-panel {
  box-shadow: 0 24px 70px rgba(24, 47, 36, 0.1);
}

.gallery-highlight-card {
  min-height: 220px;
  padding: 28px;
  border-radius: 26px;
  background: rgba(255, 252, 247, 0.95);
  border: 1px solid rgba(35, 51, 42, 0.08);
}

.gallery-highlight-card span {
  color: #bd6f48;
}

.gallery-highlight-card h3 {
  margin: 14px 0 12px;
  font-size: 24px;
}

.gallery-highlight-card p,
.gallery-item-caption {
  color: #5f6d65;
}

.gallery-title {
  text-align: center;
  padding-bottom: 22px;
}

.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.gallery-filter-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.gallery-filter-btn {
  border: 1px solid rgba(35, 51, 42, 0.12);
  background: rgba(255, 253, 248, 0.92);
  color: #23332a;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.25s ease;
}

.gallery-filter-btn.is-active {
  background: #173328;
  border-color: #173328;
  color: #ffffff;
}

.gallery-count {
  color: #5f6d65;
  font-size: 15px;
  font-weight: 700;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.98);
  border: 1px solid rgba(35, 51, 42, 0.08);
}

.gallery-item.is-clickable {
  cursor: pointer;
}

.gallery-item-visual {
  position: relative;
  aspect-ratio: 1 / 0.92;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(240, 188, 134, 0.38), transparent 28%),
    linear-gradient(135deg, #173328, #2d5844);
}

.gallery-item-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item.is-clickable:hover .gallery-item-visual img {
  transform: scale(1.03);
}

.gallery-item-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px;
  color: #ffffff;
}

.gallery-item-placeholder i {
  font-size: 34px;
}

.gallery-placeholder-tag {
  color: rgba(255, 255, 255, 0.74);
}

.gallery-item-copy {
  padding: 22px;
}

.gallery-item-label {
  color: #bd6f48;
}

.gallery-item-title {
  margin: 10px 0 8px;
  font-size: 34px;
  line-height: 0.95;
}

.gallery-note-band {
  padding: 24px 0 30px;
}

.gallery-note-panel {
  padding: 40px 44px;
  border-radius: 30px;
  background: linear-gradient(135deg, #163327, #244738);
}

.gallery-note-panel h2 {
  margin: 8px 0 14px;
  color: #ffffff;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.02;
  max-width: 840px;
}

.gallery-note-panel p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.gallery-lightbox.is-open {
  display: block;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 19, 14, 0.78);
  backdrop-filter: blur(10px);
}

.gallery-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 40px));
  margin: 48px auto;
  padding: 30px;
  border-radius: 32px;
  background: rgba(255, 253, 248, 0.97);
  border: 1px solid rgba(35, 51, 42, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}

.gallery-lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  margin: 0 72px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(23, 51, 40, 0.08), rgba(45, 88, 68, 0.12));
}

.gallery-lightbox-stage img {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  border-radius: 20px;
  object-fit: contain;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
  position: absolute;
  border: 0;
  background: rgba(23, 51, 40, 0.9);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s ease;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover {
  background: #173328;
}

.gallery-lightbox-close {
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
}

.gallery-lightbox-nav {
  top: 50%;
  width: 52px;
  height: 52px;
  margin-top: -26px;
  border-radius: 999px;
}

.gallery-lightbox-prev {
  left: 18px;
}

.gallery-lightbox-next {
  right: 18px;
}

.gallery-lightbox-copy {
  padding: 22px 8px 0;
}

@media (max-width: 991px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-lightbox-dialog {
    width: min(100% - 24px, 1080px);
    margin: 24px auto;
    padding: 20px;
  }

  .gallery-lightbox-stage {
    margin: 0 54px;
  }
}

@media (max-width: 767px) {
  .gallery-hero {
    padding: 140px 0 90px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-highlight-card,
  .gallery-item,
  .gallery-note-panel {
    border-radius: 22px;
  }

  .gallery-note-panel {
    padding: 28px 22px;
  }

  .gallery-lightbox-dialog {
    padding: 16px;
    border-radius: 22px;
  }

  .gallery-lightbox-stage {
    min-height: 280px;
    margin: 56px 0 0;
    border-radius: 18px;
  }

  .gallery-lightbox-nav {
    top: auto;
    bottom: 96px;
    margin-top: 0;
    width: 46px;
    height: 46px;
  }

  .gallery-lightbox-prev {
    left: 16px;
  }

  .gallery-lightbox-next {
    right: 16px;
  }

  .gallery-lightbox-copy {
    padding: 18px 2px 0;
  }
}
