:root {
  --ink: #0b1f27;
  --muted: #5a6a70;
  --paper: #f5f8f7;
  --white: #ffffff;
  --blue: #0b74b8;
  --teal: #0d8d87;
  --line: #d8e4e3;
  --shadow: 0 18px 45px rgba(11, 31, 39, 0.16);
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

img {
  display: block;
  max-width: 100%;
}

.gallery-page {
  overflow: hidden;
}

.gallery-hero {
  min-height: 430px;
  display: grid;
  align-items: end;
  padding: 150px 0 76px;
  background:
    linear-gradient(90deg, rgba(5, 21, 28, 0.88), rgba(5, 21, 28, 0.45)),
    url("image/image3.png") center / cover no-repeat;
  color: var(--white);
}

.gallery-hero__content,
.gallery-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: #78c9c5;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-hero h1 {
  max-width: 780px;
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.35rem, 5vw, 4.7rem);
  line-height: 1.03;
}

.gallery-hero p:last-child {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  line-height: 1.75;
}

.gallery-section {
  padding: 86px 0 96px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(260px, 0.44fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.filter-bar button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.filter-bar button:hover,
.filter-bar button.is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gallery-card {
  min-width: 0;
}

.gallery-card.is-hidden {
  display: none;
}

.gallery-card button {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: #dce8e7;
  box-shadow: 0 8px 24px rgba(11, 31, 39, 0.12);
  cursor: zoom-in;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-card span {
  position: absolute;
  inset: auto 0 0;
  min-height: 58px;
  display: flex;
  align-items: end;
  padding: 34px 16px 14px;
  background: linear-gradient(transparent, rgba(5, 21, 28, 0.85));
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 800;
  text-align: left;
}

.gallery-card button:hover img,
.gallery-card button:focus-visible img {
  transform: scale(1.06);
  filter: saturate(1.08);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(5, 21, 28, 0.9);
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  width: min(1040px, 100%);
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  background: #07171c;
  box-shadow: var(--shadow);
}

.lightbox figcaption {
  margin-top: 14px;
  color: var(--white);
  font-weight: 800;
  text-align: center;
}

.lightbox__close {
  position: fixed;
  top: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
}

.site-footer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  padding: 64px max(16px, calc((100vw - 1180px) / 2)) 26px;
  color: rgba(255, 255, 255, 0.86);
  background: #07171c;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 1.1rem;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0 0 8px;
  line-height: 1.7;
}

.site-footer a {
  display: block;
  margin-bottom: 8px;
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: #78c9c5;
}

.footer-bottom {
  grid-column: 1 / -1;
  width: 100%;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  white-space: nowrap;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: #0ad354;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(10, 211, 84, 0.28);
}

.whatsapp-float i {
  font-size: 1.35rem;
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 720px) {
  .gallery-hero {
    min-height: 360px;
    padding: 108px 0 54px;
  }

  .gallery-section {
    padding: 58px 0 78px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .gallery-card span {
    min-height: 52px;
    padding: 26px 12px 12px;
    font-size: 0.82rem;
  }

  .whatsapp-float span {
    display: none;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    justify-content: center;
    padding: 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-bottom p {
    white-space: normal;
  }
}

@media (max-width: 460px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar button {
    flex: 1 1 auto;
  }
}
