/* =====================================================
   LE-GARDEN INN - GALLERY PAGE
   Uses the existing blue theme from style-le-garden-blue.css
===================================================== */

.gallery-hero {
  position: relative;
  height: min(720px, calc(100vh - 76px));
  min-height: 560px;
  overflow: hidden;
  background: #061a35;
}

.hero-panels {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.7fr 0.9fr 2.7fr 0.9fr 0.7fr;
  gap: 4px;
}
.brand-icon {
  height: 95px;
  padding: 10px 0;
  width: auto;
}

.hero-panel {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #0b1d37;
}

.hero-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
  transform: scale(1.015);
  transition: transform 0.8s ease, filter 0.5s ease;
}

.hero-panel:hover img {
  transform: scale(1.08);
  filter: saturate(1.08);
}

.panel-one img,
.panel-five img {
  object-position: center;
}

.panel-main img {
  object-position: center;
}

.gallery-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
  url("../images/gallery/front2.jpg") center/cover no-repeat,
    linear-gradient(180deg, rgba(3, 12, 30, 0.12) 15%, rgba(3, 12, 30, 0.72) 100%),
    linear-gradient(90deg, rgba(3, 12, 30, 0.32), transparent 34%, transparent 66%, rgba(3, 12, 30, 0.32));
  pointer-events: none;
}

.gallery-hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
  padding-bottom: 62px;
  color: #fff;
  text-align: center;
}

.gallery-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  color: #a9ebff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.gallery-kicker::before,
.gallery-kicker::after {
  content: "";
  width: 42px;
  height: 1px;
  background: rgba(255, 255, 255, 0.72);
}

.gallery-hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1;
  letter-spacing: -2px;
  text-transform: uppercase;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.38);
}

.gallery-hero p {
  width: min(680px, 92%);
  margin: 17px auto 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
}

.gallery-scroll-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 999px;
  color: #fff;
  background: rgba(8, 169, 227, 0.28);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 700;
  transition: 0.3s ease;
}

.gallery-scroll-link:hover {
  background: #08a9e3;
  border-color: #08a9e3;
  transform: translateY(-2px);
}

.gallery-intro {
  background: #fff;
}

.gallery-intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.gallery-intro-copy h2 {
  max-width: 690px;
  margin: 10px 0 15px;
  color: #071326;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.18;
}

.gallery-intro-copy p {
  max-width: 720px;
  color: var(--muted);
}

.gallery-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery-highlights div {
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 18px 12px;
  border: 1px solid #ccebf7;
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff, #edfaff);
  text-align: center;
  box-shadow: 0 12px 26px rgba(0, 105, 160, 0.08);
}

.gallery-highlights strong {
  color: #080282;
  font-size: 30px;
  line-height: 1;
}

.gallery-highlights span {
  margin-top: 9px;
  color: #687384;
  font-size: 12px;
  font-weight: 600;
}

.gallery-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: -6px 0 38px;
}

.filter-btn {
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid #bfe7f7;
  border-radius: 999px;
  color: #243142;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  color: #fff;
  border-color: #080282;
  background: #080282;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(8, 2, 130, 0.18);
}

.modern-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 225px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #dceff7;
  box-shadow: 0 13px 30px rgba(0, 76, 122, 0.13);
  cursor: pointer;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.gallery-item.gallery-wide {
  grid-column: span 2;
}

.gallery-item.gallery-tall {
  grid-row: span 2;
}

.gallery-item.is-hidden {
  display: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease, filter 0.45s ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(5, 17, 38, 0.82) 100%);
  opacity: 0.82;
  transition: opacity 0.35s ease;
}

.gallery-item::before {
  content: "\f00e";
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: #fff;
  background: rgba(8, 169, 227, 0.45);
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  opacity: 0;
  transform: translateY(-8px);
  transition: 0.35s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: saturate(1.08);
}

.gallery-item:hover::before {
  opacity: 1;
  transform: none;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item-overlay {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  color: #fff;
  text-align: left;
}

.gallery-item-overlay b {
  font-size: 16px;
}

.gallery-item-overlay small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 500;
}

.property-gallery-section {
  background: #fff;
}

.property-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.property-gallery-card {
  --property-color: #08a9e3;
  overflow: hidden;
  border: 1px solid #d8eefa;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 15px 35px rgba(0, 75, 118, 0.11);
  transition: 0.35s ease;
}

.property-gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 44px rgba(0, 75, 118, 0.17);
}

.property-red {
  --property-color: #970000;
}

.property-blue {
  --property-color: #e38408;
}

.property-yellow {
  --property-color: #d9aa00;
}

.property-gallery-image {
  height: 220px;
  overflow: hidden;
}

.property-gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.45s ease;
}

.property-gallery-card:hover img {
  transform: scale(1.06);
}

.property-gallery-content {
  position: relative;
  padding: 25px;
  border-top: 5px solid var(--property-color);
}

.property-gallery-content span {
  color: var(--property-color);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.property-gallery-content h3 {
  margin: 7px 0 16px;
  color: #081324;
  font-size: 21px;
}

.property-gallery-content a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--property-color);
  font-size: 13px;
  font-weight: 800;
}

.property-gallery-content a i {
  transition: transform 0.3s ease;
}

.property-gallery-content a:hover i {
  transform: translateX(5px);
}

.gallery-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 42px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at right top, rgba(8, 169, 227, 0.6), transparent 32%),
    linear-gradient(135deg, #101a3d, #080282);
  box-shadow: 0 20px 46px rgba(8, 2, 130, 0.22);
}

.gallery-cta span {
  color: #8ee4ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.gallery-cta h2 {
  margin: 5px 0 7px;
  font-size: clamp(28px, 4vw, 42px);
}

.gallery-cta p {
  color: rgba(255, 255, 255, 0.75);
}

.gallery-cta .btn-green {
  flex: 0 0 auto;
  color: #080282;
  background: #fff;
}

.gallery-cta .btn-green:hover {
  color: #fff;
  background: #08a9e3;
}

/* Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 90px;
  background: rgba(2, 10, 26, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-figure {
  width: min(1120px, 100%);
  max-height: 86vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox-image {
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

.lightbox-caption {
  margin-top: 16px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.lightbox-close,
.lightbox-arrow {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  background: rgba(8, 169, 227, 0.28);
  cursor: pointer;
  transition: 0.3s ease;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
  background: #08a9e3;
}

.lightbox-close {
  top: 22px;
  right: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 20px;
}

.lightbox-arrow {
  top: 50%;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 1050px) {
  .gallery-intro-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .modern-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .property-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .gallery-hero {
    height: 620px;
    min-height: 0;
  }

  .hero-panels {
    grid-template-columns: 0.65fr 2.7fr 0.65fr;
  }

  .panel-two,
  .panel-four {
    display: none;
  }

  .gallery-hero-content {
    padding-bottom: 46px;
  }

  .gallery-hero h1 {
    font-size: clamp(42px, 14vw, 62px);
  }

  .gallery-highlights {
    grid-template-columns: 1fr;
  }

  .gallery-highlights div {
    min-height: 105px;
  }

  .modern-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 210px;
  }

  .gallery-item.gallery-wide {
    grid-column: span 2;
  }

  .property-gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 30px 24px;
  }

  .gallery-lightbox {
    padding: 70px 16px 30px;
  }

  .lightbox-arrow {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .lightbox-prev {
    left: calc(50% - 64px);
  }

  .lightbox-next {
    right: calc(50% - 64px);
  }

  .lightbox-caption {
    margin-bottom: 60px;
  }
}

@media (max-width: 480px) {
  .gallery-hero {
    height: 560px;
  }

  .hero-panels {
    grid-template-columns: 0.48fr 3fr 0.48fr;
  }

  .gallery-kicker::before,
  .gallery-kicker::after {
    width: 22px;
  }

  .modern-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }

  .gallery-item.gallery-wide,
  .gallery-item.gallery-tall {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-filter {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .filter-btn {
    flex: 0 0 auto;
  }
}
