/* ====================================================
   ARQ Interior Design Studio - Gallery page styles
   Loaded after custom.css by projects.html only.
   Order: tokens, nav state, banner, gallery, consultation CTA,
   breakpoints (widest to narrowest).
   ==================================================== */

:root {
  --gl-ivory: #fbf9f6;
  --gl-beige: #f3efe8;
  --gl-ink: #25221d;
  --gl-body: #625d55;
  --gl-gold: #97834c;
  --gl-gold-dark: #7a6733;
  --gl-line: #ddd3c0;
  --gl-section-y: 60px;
  --gl-gap: 24px;
}

/* current item in the shared navigation */
.main-menu ul li a[aria-current="page"] {
  color: var(--accent-secondary-color);
}

/* ---------- Page banner ----------
   Markup and shared .page-header / .page-header-box rules are identical to the About page.
   The only banner rule About adds in its own stylesheet is the H1 size, repeated here. */
.page-header-box h1 {
  font-size: clamp(34px, 6vw, 72px);
}

/* ---------- Gallery ---------- */
.gl-gallery {
  background: var(--gl-ivory);
  padding: var(--gl-section-y) 0;
}

.gl-head {
  max-width: 820px;
  margin: 0 auto 36px;
  text-align: center;
}

.gl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  font-family: var(--accent-font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gl-gold-dark);
}

.gl-eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gl-gold);
}

.gl-h2 {
  margin: 0 0 16px;
  font-family: var(--accent-font);
  font-size: clamp(30px, 3.1vw, 42px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--gl-ink);
}

.gl-lead {
  max-width: 640px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.65;
  color: var(--gl-body);
}

/* editorial masonry: natural aspect ratios, columns balance themselves */
.gl-grid {
  column-count: 3;
  column-gap: var(--gl-gap);
}

.gl-item {
  break-inside: avoid;
  margin: 0 0 var(--gl-gap);
}

.gl-item a {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--gl-beige);
  cursor: zoom-in;
}

.gl-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s ease-in-out;
}

.gl-item a:hover img,
.gl-item a:focus-visible img {
  transform: scale(1.04);
}

.gl-item a:focus-visible {
  outline: 2px solid var(--gl-gold);
  outline-offset: 3px;
}

/* thin gold edge that grows on hover (no extra markup) */
.gl-item a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 2px;
  background: var(--gl-gold);
  transition: width 0.5s ease-in-out;
}

.gl-item a:hover::after,
.gl-item a:focus-visible::after {
  width: 100%;
}

/* three columns only: the tallest photograph is trimmed slightly at the sides so the column bottoms line up
   (the lightbox always shows the whole photograph) */
@media only screen and (min-width: 992px) {
  .gl-item--tall a {
    aspect-ratio: 21 / 50;
  }

  .gl-item--tall img {
    height: 100%;
    object-fit: cover;
  }
}

/* lightbox above the floating WhatsApp / Call buttons (their shared z-index is 9999, Magnific's default is ~1043);
   scoped to this page, the buttons themselves are untouched */
.mfp-bg {
  z-index: 10040;
}

.mfp-wrap {
  z-index: 10050;
}

/* ---------- Consultation CTA ----------
   Same layout, frame and spacing as the About page CTA (.ab-cta in about-page.css). */
.gl-cta {
  background: var(--gl-beige);
  padding: 52px 0;
  text-align: left;
}

.gl-cta-banner {
  position: relative;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  column-gap: 48px;
  align-items: center;
  width: fit-content;
  max-width: 1120px;
  margin: 0 auto;
  padding: 38px 48px;
  background: #fbf9f6;
  border: 1px solid rgba(151, 131, 76, 0.55);
}

/* architectural corner accents (as on About) */
.gl-cta-banner::before,
.gl-cta-banner::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border: 0 solid #97834c;
}

.gl-cta-banner::before {
  top: -9px;
  left: -9px;
  border-top-width: 2px;
  border-left-width: 2px;
}

.gl-cta-banner::after {
  right: -9px;
  bottom: -9px;
  border-right-width: 2px;
  border-bottom-width: 2px;
}

.gl-cta .gl-eyebrow {
  margin-bottom: 14px;
}

.gl-cta-title {
  margin: 0 0 14px;
  font-family: var(--accent-font);
  font-size: clamp(34px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: #25221d;
  text-wrap: balance;
}

.gl-cta-text {
  max-width: 720px;
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: #4f4a42;
  text-wrap: pretty;
}

.gl-cta-banner .btn-default {
  padding: 21px 56px 21px 32px;
  font-size: 16px;
  white-space: nowrap;
}

/* the site's custom cursor follower (gold dot) is hidden while the pointer is over the CTA, as on About */
body:has(.gl-cta:hover) .cb-cursor {
  display: none;
}

/* ====================================================
   Breakpoints - widest to narrowest
   ==================================================== */
@media only screen and (max-width: 1279px) {
  .gl-cta-banner {
    padding: 34px 40px;
  }
}

@media only screen and (max-width: 991px) {
  :root {
    --gl-section-y: 48px;
    --gl-gap: 20px;
  }

  .gl-head {
    margin-bottom: 30px;
  }

  .gl-grid {
    column-count: 2;
  }

  .gl-cta-banner {
    grid-template-columns: minmax(0, 1fr);
    justify-content: normal;
    width: auto;
    row-gap: 24px;
    padding: 36px 34px;
  }

  .gl-cta-title {
    font-size: clamp(30px, 5.2vw, 40px);
  }
}

@media only screen and (max-width: 767px) {
  :root {
    --gl-section-y: 40px;
    --gl-gap: 16px;
  }

  .gl-head {
    margin-bottom: 24px;
  }

  .gl-lead {
    font-size: 16px;
  }

  .gl-cta {
    padding: 40px 0;
  }

  .gl-cta-banner {
    padding: 30px 22px 32px;
  }

  .gl-cta-text {
    font-size: 17px;
  }

  .gl-cta-action {
    justify-self: stretch;
  }

  .gl-cta-banner .btn-default {
    display: block;
    padding: 20px 52px 20px 30px;
    font-size: 17px;
    text-align: center;
  }
}

@media only screen and (max-width: 575px) {
  .gl-grid {
    column-count: 1;
  }
}

/* ====================================================
   Category filter, video tiles and video lightbox
   ==================================================== */
.gl-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 0 36px;
}

.gl-filter {
  min-width: 132px;
  padding: 12px 28px;
  font-family: var(--accent-font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gl-ink);
  background: transparent;
  border: 1px solid var(--gl-line);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.gl-filter:hover,
.gl-filter:focus-visible {
  border-color: var(--gl-gold);
}

.gl-filter:focus-visible {
  outline: 2px solid var(--gl-gold);
  outline-offset: 3px;
}

.gl-filter.is-active {
  color: #fff;
  background: var(--gl-ink);
  border-color: var(--gl-ink);
}

.gl-item[hidden] {
  display: none;
}

/* video tile: poster + centred play button */
.gl-item--video a {
  cursor: pointer;
}

.gl-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  font-size: 20px;
  color: var(--gl-ink);
  background: rgba(251, 249, 246, 0.92);
  border: 1px solid var(--gl-gold);
  border-radius: 50%;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, background-color 0.3s ease;
  pointer-events: none;
}

.gl-item--video a:hover .gl-play,
.gl-item--video a:focus-visible .gl-play {
  transform: scale(1.08);
  background: #fff;
}

/* video lightbox */
.gl-video-modal {
  max-width: 94vw;
  margin: 0 auto;
  text-align: center;
}

.gl-video-modal video {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 84vh;
  margin: 0 auto;
  background: #000;
}

@media only screen and (max-width: 575px) {
  .gl-filters {
    gap: 8px;
    margin-bottom: 26px;
  }

  .gl-filter {
    min-width: 0;
    padding: 11px 18px;
    font-size: 13px;
  }

  .gl-play {
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
  }
}

/* ---------- Video section (separate from the image masonry) ---------- */
.gl-videos {
  background: var(--gl-beige);
  padding: var(--gl-section-y) 0;
}

.gl-videos[hidden] {
  display: none;
}

.gl-video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gl-gap);
}

.gl-video-grid .gl-item {
  margin: 0;
}

/* all posters are 9:16, so the fixed ratio crops nothing */
.gl-video-grid .gl-item a {
  aspect-ratio: 9 / 16;
}

.gl-video-grid .gl-item img {
  height: 100%;
  object-fit: cover;
}

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