/* ========================================================================== 
   ZEZE PROJECT GALLERY PAGE
   ========================================================================== */

.gallery-hero { background: radial-gradient(circle at 84% 16%, rgba(248, 181, 27, 0.18), transparent 30%), radial-gradient(circle at 12% 86%, rgba(27, 64, 104, 0.74), transparent 48%), linear-gradient(145deg, var(--navy-700) 0%, var(--navy-600) 100%); }
.gallery-hero__visual { position: relative; min-height: 500px; display: grid; grid-template-columns: 1.08fr 0.92fr; grid-template-rows: 1fr 1fr; gap: 14px; padding: 30px 0 16px 26px; }
.gallery-hero__visual::before { content: ""; position: absolute; inset: 6% -4% 2% 6%; border-radius: 36px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); transform: rotate(2.5deg); }
.gallery-hero__tile { position: relative; z-index: 1; overflow: hidden; border-radius: 22px; border: 1px solid rgba(255, 255, 255, 0.28); box-shadow: 0 24px 50px rgba(3, 16, 30, 0.24); }
.gallery-hero__tile--main { grid-row: 1 / 3; }
.gallery-hero__tile img { width: 100%; height: 100%; object-fit: cover; }
.gallery-hero__count { position: absolute; z-index: 3; left: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 13px 17px; border-radius: 16px; background: rgba(255, 255, 255, 0.94); border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: 0 16px 32px rgba(3, 16, 30, 0.22); color: var(--ink-900); }
.gallery-hero__count strong { font-family: var(--font-display); font-size: 1.55rem; color: var(--zeze-yellow-deep); }
.gallery-hero__count small { max-width: 55px; font-size: 0.68rem; font-weight: 800; line-height: 1.2; text-transform: uppercase; color: var(--ink-700); }

.gallery-main { padding: var(--section-y) 0; background: radial-gradient(circle at 92% 3%, rgba(248, 181, 27, 0.09), transparent 22%), var(--cream-100); }
.gallery-main__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 34px; margin-bottom: 36px; }
.gallery-main__head > div:first-child { max-width: 720px; }
.gallery-main__head .badge { margin-bottom: 16px; }
.gallery-main__head h2 { margin-bottom: 10px; color: var(--ink-900); }
.gallery-main__head .lede { color: var(--ink-500); }
.gallery-filter-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.gallery-filters { display: inline-flex; gap: 6px; padding: 6px; border-radius: var(--radius-pill); background: #ffffff; border: 1px solid rgba(11, 27, 43, 0.09); box-shadow: 0 10px 24px rgba(11, 27, 43, 0.06); }
.gallery-filter { min-height: 42px; padding: 8px 17px; border: 0; border-radius: var(--radius-pill); background: transparent; font-family: var(--font-display); font-size: 0.78rem; font-weight: 800; color: var(--ink-500); cursor: pointer; transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.gallery-filter:hover { color: var(--navy-700); }
.gallery-filter.is-active { background: var(--navy-700); color: #ffffff; box-shadow: 0 8px 18px rgba(6, 24, 43, 0.18); }
.gallery-filter:focus-visible { outline: 2px solid var(--zeze-yellow-deep); outline-offset: 2px; }
.gallery-results { font-size: 0.72rem; font-weight: 700; color: var(--ink-500); }

.gallery-grid { columns: 3 300px; column-gap: 18px; }
.gallery-item { break-inside: avoid; margin-bottom: 18px; }
.gallery-item[hidden] { display: none; }
.gallery-card { position: relative; display: block; width: 100%; overflow: hidden; padding: 0; border: 0; border-radius: 24px; background: var(--navy-700); box-shadow: 0 14px 34px rgba(6, 24, 43, 0.11); cursor: zoom-in; text-align: left; isolation: isolate; }
.gallery-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 48%, rgba(3, 16, 30, 0.88) 100%); }
.gallery-card img { display: block; width: 100%; height: auto; transition: transform 650ms var(--ease-out), filter 650ms var(--ease-out); }
.gallery-card--crop-source-ui img { margin-top: -44px; }
.gallery-card__overlay { position: absolute; z-index: 2; left: 22px; right: 66px; bottom: 20px; display: flex; flex-direction: column; gap: 5px; color: #ffffff; }
.gallery-card__overlay small { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--zeze-yellow); }
.gallery-card__overlay strong { font-family: var(--font-display); font-size: 1rem; line-height: 1.25; }
.gallery-card__view { position: absolute; z-index: 2; right: 18px; bottom: 18px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.24); color: #ffffff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.gallery-card__view .icon { width: 17px; height: 17px; }
.gallery-card:hover img,
.gallery-card:focus-visible img { transform: scale(1.035); filter: saturate(1.08); }
.gallery-card:focus-visible { outline: 3px solid var(--zeze-yellow); outline-offset: 4px; }

.gallery-conversion { padding: 0 0 var(--section-y); background: var(--cream-100); }
.gallery-conversion__panel { display: flex; align-items: center; justify-content: space-between; gap: 36px; padding: clamp(34px, 5vw, 58px); border-radius: clamp(28px, 4vw, 42px); background: radial-gradient(circle at 90% 10%, rgba(248, 181, 27, 0.16), transparent 28%), linear-gradient(138deg, var(--navy-700), var(--navy-600)); color: #ffffff; box-shadow: 0 24px 56px rgba(3, 16, 30, 0.18); }
.gallery-conversion__panel > div:first-child { max-width: 720px; }
.gallery-conversion__panel .badge { margin-bottom: 16px; }
.gallery-conversion__panel h2 { margin-bottom: 10px; color: #ffffff; }
.gallery-conversion__panel p { color: var(--on-dark-700); }
.gallery-conversion__actions { display: flex; flex-wrap: wrap; gap: 10px; flex: none; }

.gallery-lightbox { position: fixed; inset: 0; width: min(1180px, calc(100% - 48px)); max-width: none; height: min(820px, calc(100% - 48px)); max-height: none; margin: auto; padding: 0; border: 0; border-radius: 28px; overflow: hidden; background: var(--navy-950); box-shadow: 0 34px 100px rgba(0, 0, 0, 0.48); color: #ffffff; }
.gallery-lightbox::backdrop { background: rgba(3, 16, 30, 0.88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.gallery-lightbox[open] { display: grid; place-items: center; }
.gallery-lightbox__figure { width: 100%; height: 100%; min-height: 0; max-height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; overflow: hidden; }
.gallery-lightbox__stage { display: grid; place-items: center; min-height: 0; overflow: hidden; padding: 34px 86px 16px; }
.gallery-lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 16px; box-shadow: 0 22px 60px rgba(0, 0, 0, 0.30); }
.gallery-lightbox__stage img.gallery-lightbox__image--crop-source-ui { width: auto; height: 100%; aspect-ratio: 1080 / 1200; object-fit: cover; object-position: center bottom; }
.gallery-lightbox figcaption { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 28px 22px; border-top: 1px solid rgba(255, 255, 255, 0.10); background: rgba(255, 255, 255, 0.04); }
.gallery-lightbox figcaption > span:first-child { display: flex; flex-direction: column; gap: 4px; }
.gallery-lightbox figcaption small { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--zeze-yellow); }
.gallery-lightbox figcaption strong { font-family: var(--font-display); font-size: 1rem; }
#gallery-lightbox-counter { font-size: 0.75rem; font-weight: 800; color: var(--on-dark-500); }
.gallery-lightbox__close { position: absolute; z-index: 4; top: 18px; right: 18px; background: rgba(255, 255, 255, 0.94); border-color: #ffffff; color: var(--navy-950); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22); }
.gallery-lightbox__nav { position: absolute; z-index: 4; top: 50%; width: 48px; height: 48px; transform: translateY(-50%); background: rgba(255, 255, 255, 0.94); border-color: #ffffff; color: var(--navy-950); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22); }
.gallery-lightbox__nav--prev { left: 20px; }
.gallery-lightbox__nav--next { right: 20px; }
.gallery-lightbox__nav:hover,
.gallery-lightbox__close:hover { background: var(--zeze-yellow); color: var(--navy-950); border-color: var(--zeze-yellow); }
html.gallery-lock { overflow: hidden; }

@media (max-width: 1024px) {
  .gallery-hero__visual { min-height: 430px; max-width: 700px; width: 100%; margin-inline: auto; }
  .gallery-main__head { align-items: flex-start; flex-direction: column; }
  .gallery-filter-wrap { align-items: flex-start; }
  .gallery-conversion__panel { align-items: flex-start; flex-direction: column; }
  .gallery-conversion__actions { width: 100%; }
}

@media (max-width: 640px) {
  .gallery-hero__visual { min-height: 370px; padding: 18px 0 12px; gap: 8px; }
  .gallery-hero__visual::before { inset: 4% 1% 2% 4%; border-radius: 26px; }
  .gallery-hero__tile { border-radius: 16px; }
  .gallery-hero__count { left: 8px; padding: 10px 13px; }
  .gallery-main__head { margin-bottom: 26px; }
  .gallery-filters { width: 100%; }
  .gallery-filter { flex: 1 1 0; min-width: 0; padding-inline: 10px; }
  .gallery-grid { columns: 1; }
  .gallery-item { margin-bottom: 14px; }
  .gallery-card { border-radius: 20px; }
  .gallery-card__overlay { left: 18px; bottom: 17px; }
  .gallery-conversion__actions { flex-direction: column; }
  .gallery-conversion__actions .btn { width: 100%; }
  .gallery-lightbox { width: calc(100% - 20px); height: calc(100% - 24px); border-radius: 22px; }
  .gallery-lightbox__stage { padding: 64px 12px 12px; }
  .gallery-lightbox__stage img { border-radius: 12px; }
  .gallery-lightbox__nav { top: auto; bottom: 82px; width: 44px; height: 44px; transform: none; }
  .gallery-lightbox__nav--prev { left: 18px; }
  .gallery-lightbox__nav--next { right: 18px; }
  .gallery-lightbox figcaption { padding: 16px 72px 18px; text-align: center; }
  .gallery-lightbox figcaption > span:first-child { align-items: center; }
  #gallery-lightbox-counter { display: none; }
}
