/* ==========================================================================
   Seek Property Services Pty Ltd - Pinterest-Style Luxury Gallery Stylesheet
   Clean, visual-first, minimal text, interactive video showcase
   ========================================================================== */

/* Page Base */
.gallery-page {
  background: #ffffff;
  color: var(--text-body);
}

/* ==========================================================================
   GALLERY HERO
   ========================================================================== */
.gallery-hero {
  position: relative;
  background: var(--primary-dark);
  overflow: hidden;
}
.gallery-hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/exterior-painting.jpg') center 40%/cover no-repeat;
}
.gallery-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 28, 48, .985) 0%, rgba(6, 34, 57, .96) 28%, rgba(6, 38, 61, .74) 48%, rgba(6, 38, 61, .20) 72%, rgba(6, 38, 61, .04) 100%);
}
.gallery-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 404px;
  padding-top: 40px;
  padding-bottom: 30px;
}
.gallery-hero-copy {
  color: #fff;
  max-width: 580px;
}
.gallery-kicker {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-orange);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.gallery-hero-copy h1 {
  font-size: 41px;
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.6px;
  margin-bottom: 13px;
  color: #fff;
}
.gallery-hero-copy h1 span {
  color: var(--accent-orange);
}
.gallery-hero-sub {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .01em;
  margin-bottom: 12px;
  color: #fff;
}
.gallery-hero-text {
  font-size: 13.5px;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 24px;
  max-width: 480px;
}
.gallery-hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}
.gallery-video-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: var(--radius-sm);
  padding: 0 20px;
  height: 44px;
  transition: all 0.3s ease;
}
.gallery-video-btn:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
}
.gallery-video-btn span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
}
.gallery-trust-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.gallery-trust-row li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 10px 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}
.gallery-trust-row li:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(244, 123, 32, 0.4);
  transform: translateY(-2px);
}
.gallery-trust-row li i {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(244, 123, 32, 0.18);
  border: 1px solid rgba(244, 123, 32, 0.35);
  color: var(--accent-orange);
  display: grid;
  place-items: center;
  font-size: 15px;
  flex-shrink: 0;
}
.gallery-trust-row li span strong {
  display: block;
  font-size: 12.5px;
  font-family: var(--font-head);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 2px;
}
.gallery-trust-row li span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  line-height: 1.3;
}

/* ==========================================================================
   PINTEREST FILTER BAR
   ========================================================================== */
.pin-filter-sec {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #edf2f7;
  padding: 14px 0;
  box-shadow: 0 2px 16px rgba(13, 39, 66, 0.03);
}
.pin-filter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.pin-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pin-tab {
  background: #f1f4f8;
  border: 0;
  border-radius: 24px;
  padding: 7px 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dark);
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.22s ease;
}
.pin-tab:hover {
  background: #e4ebf3;
  color: var(--primary-dark);
}
.pin-tab.active {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: 0 4px 12px rgba(13, 39, 66, 0.2);
}
.pin-tab.active .count {
  background: rgba(255,255,255,0.25);
  color: #fff;
}
.pin-tab .count {
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 12px;
  background: #e2e8f0;
  color: var(--text-muted);
  margin-left: 4px;
  font-weight: 700;
}
.pin-view-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   PINTEREST MASONRY BOARD (CSS Columns Layout)
   ========================================================================== */
.pin-board-sec {
  padding: 40px 0 80px;
  background: #ffffff;
}
.pin-board {
  column-count: 4;
  column-gap: 20px;
}
.pin-card {
  break-inside: avoid;
  margin-bottom: 20px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #0d2742;
  box-shadow: 0 4px 18px rgba(13, 39, 66, 0.06);
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(.22,1,.36,1), box-shadow 0.35s ease;
}
.pin-card.hidden {
  display: none;
}
.pin-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(13, 39, 66, 0.16);
}

/* Pin Image Sizing (Organic Pinterest Heights) */
.pin-media {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #eef2f7;
}
.pin-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(.22,1,.36,1);
}
.pin-card:hover .pin-media img {
  transform: scale(1.06);
}

/* Different Pin Aspect Ratios */
.pin-card.tall .pin-media img {
  aspect-ratio: 3/4.2;
}
.pin-card.square .pin-media img {
  aspect-ratio: 1/1;
}
.pin-card.wide .pin-media img {
  aspect-ratio: 4/3;
}
.pin-card.portrait .pin-media img {
  aspect-ratio: 3/4;
}

/* Pinterest Floating Actions & Overlay */
.pin-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0) 40%, rgba(8, 26, 45, 0.88) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.pin-card:hover .pin-overlay {
  opacity: 1;
}

/* Save / Quote Pin Button (Top-Right) */
.pin-save-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent-orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(244, 123, 32, 0.4);
  opacity: 0;
  transform: translateY(-6px);
  transition: all 0.28s cubic-bezier(.22,1,.36,1);
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 3;
}
.pin-card:hover .pin-save-btn {
  opacity: 1;
  transform: translateY(0);
}
.pin-save-btn:hover {
  background: #e06c17;
  transform: scale(1.05);
}

/* Category Badge (Top-Left) */
.pin-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(13, 39, 66, 0.85);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 14px;
  z-index: 2;
  border: 1px solid rgba(255,255,255,0.15);
}

/* Minimalist Caption (Bottom) */
.pin-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  color: #fff;
  z-index: 2;
  transform: translateY(4px);
  opacity: 0;
  transition: all 0.3s ease;
}
.pin-card:hover .pin-meta {
  opacity: 1;
  transform: translateY(0);
}
.pin-meta h3 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
  line-height: 1.3;
}
.pin-meta span {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-orange);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   VIDEO SHOWCASE SECTION (Craftsmanship in Motion)
   ========================================================================== */
.gallery-video-sec {
  padding: 90px 0;
  background: var(--primary-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.gallery-video-sec::before {
  content: "";
  position: absolute;
  top: -150px;
  left: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(244, 123, 32, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.g-video-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 40px;
  position: relative;
  z-index: 2;
}
.g-video-header .section-title {
  font-size: 33px;
  color: #fff;
  margin-bottom: 12px;
}
.g-video-header .section-text {
  color: rgba(255,255,255,0.78);
  max-width: 520px;
  margin: 0 auto;
}

/* Main Cinematic Video Banner */
.g-video-banner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto 50px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255,255,255,0.15);
  aspect-ratio: 16/8.5;
  background: #000;
  cursor: pointer;
}
.g-video-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  display: block;
  transition: transform 0.7s cubic-bezier(.22,1,.36,1), opacity 0.4s ease;
}
.g-video-banner:hover img {
  transform: scale(1.03);
  opacity: 0.9;
}
.gvb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(13,39,66,0.85) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.gvb-play-btn {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--accent-orange);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  padding-left: 4px;
  box-shadow: 0 0 0 10px rgba(244, 123, 32, 0.25), 0 12px 30px rgba(0,0,0,0.4);
  transition: all 0.3s cubic-bezier(.22,1,.36,1);
}
.g-video-banner:hover .gvb-play-btn {
  transform: scale(1.12);
  box-shadow: 0 0 0 16px rgba(244, 123, 32, 0.35), 0 16px 36px rgba(0,0,0,0.5);
}
.gvb-caption {
  text-align: center;
}
.gvb-caption h3 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.gvb-caption span {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* 3 Video Reel Thumbnails */
.g-video-reels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.gvr-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}
.gvr-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-orange);
  transform: translateY(-4px);
}
.gvr-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.gvr-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gvr-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(244, 123, 32, 0.9);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  padding-left: 2px;
}
.gvr-info {
  padding: 16px;
}
.gvr-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.gvr-info p {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* ==========================================================================
   VIDEO MODAL POPUP
   ========================================================================== */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(6, 18, 31, 0.92);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
}
.video-modal.open {
  opacity: 1;
  visibility: visible;
}
.vm-frame {
  position: relative;
  width: min(960px, 100%);
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.8);
  display: grid;
  place-items: center;
  color: #fff;
}
.vm-close {
  position: absolute;
  top: -46px;
  right: 0;
  background: none;
  border: 0;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  transition: color 0.2s;
}
.vm-close:hover {
  color: var(--accent-orange);
}

/* ==========================================================================
   LIGHTBOX MODAL & DYNAMIC FRAME
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 38px 24px;
  background: rgba(6, 18, 31, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility 0s linear .35s;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
  transition: opacity .35s ease, visibility 0s linear 0s;
}
.lb-frame {
  position: relative;
  margin: 0 auto;
  width: -moz-fit-content;
  width: fit-content;
  max-width: min(980px, calc(100vw - 32px));
  background: #fff;
  padding: 12px 12px 0;
  border-radius: 16px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.85);
  transform: scale(0.92) translateY(14px);
  opacity: 0;
  transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}
.lightbox.open .lb-frame {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.lb-frame img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: calc(100vh - 168px);
  width: auto;
  height: auto;
  border-radius: 10px;
  background: #eef2f6;
  object-fit: contain;
}
.lb-frame figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  gap: 6px 12px;
  padding: 11px 4px 13px;
}
.lb-frame figcaption strong {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  width: 100%;
  white-space: normal;
  word-break: break-word;
}
.lb-frame figcaption span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-orange);
  background: rgba(244,123,32,0.1);
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.lb-frame figcaption em {
  margin-left: auto;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .lightbox { padding: 16px 12px; }
  .lb-frame { padding: 8px 8px 0; border-radius: 14px; max-width: calc(100vw - 24px); }
  .lb-frame img { max-height: calc(100vh - 150px); }
  .lb-frame figcaption { padding: 8px 2px 10px; }
  .lb-frame figcaption strong { font-size: 13px; }
}

/* ==========================================================================
   RESPONSIVE (Desktop, Tablet & Mobile)
   ========================================================================== */
@media (max-width: 1200px) {
  .pin-board { column-count: 3; column-gap: 16px; }
}

@media (max-width: 992px) {
  .gallery-hero-overlay { background: rgba(5, 28, 48, 0.94); }
  .gallery-hero-copy h1 { font-size: 33px; }
  .gallery-trust-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    width: 100%;
  }
  .pin-board { column-count: 2; column-gap: 14px; }
  .g-video-reels { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 768px) {
  .gallery-hero-inner {
    padding-top: 35px;
    padding-bottom: 25px;
  }
  .gallery-hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .gallery-hero-actions .btn,
  .gallery-video-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .gallery-trust-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }
  .gallery-trust-row li {
    width: 100%;
    padding: 12px 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  }

  .pin-board-sec, .gallery-video-sec, .gallery-overview {
    padding: 40px 0;
  }
  .section-title,
  .gv-copy h2 {
    font-size: 28px;
    line-height: 1.25;
  }

  .pin-filter-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .pin-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    width: 100%;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .pin-tab {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 7px 14px;
    font-size: 12px;
  }
  .pin-board {
    column-count: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    width: 100% !important;
  }
  .pin-card {
    width: 100% !important;
    margin-bottom: 0 !important;
    display: block !important;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(13, 39, 66, 0.08);
  }
  .pin-card.hidden {
    display: none !important;
  }
  .pin-card .pin-media img,
  .pin-card.tall .pin-media img,
  .pin-card.square .pin-media img,
  .pin-card.wide .pin-media img,
  .pin-card.portrait .pin-media img {
    aspect-ratio: 16 / 10;
    width: 100%;
    height: 230px;
    object-fit: cover;
  }
  .pin-overlay {
    opacity: 1 !important;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0) 40%, rgba(8, 26, 45, 0.88) 100%) !important;
  }
  .pin-meta {
    opacity: 1 !important;
    transform: translateY(0) !important;
    padding: 12px 14px 14px !important;
  }
  .pin-meta h3 {
    font-size: 14px !important;
    line-height: 1.25 !important;
  }
  .pin-meta span {
    font-size: 11px !important;
  }
  .pin-save-btn {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
  .g-video-banner {
    aspect-ratio: 16/10;
  }
  .gvb-play-btn {
    width: 58px;
    height: 58px;
    font-size: 17px;
  }
  .gv-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .gallery-hero-copy h1 { font-size: 28px; }
  .gallery-kicker { font-size: 10px; }
  .section-title, .gv-copy h2 { font-size: 24px; }
}
