/* GENERATED FILE — DO NOT EDIT DIRECTLY.
   Logos Publicity — pages/gallery.css
   Edit assets/css/src/ (see src/README.md), then run: node scripts/build-css.mjs
   Asset version: 20260814-about3
*/

/* === from src/page-gallery.css === */
/**
 * Mosaic Gallery v2 — unified portfolio grid (Phase 1)
 * Replaces per-project containerN classes with layout presets + data-cols spans.
 */

.gallery-v2 {
  padding-top: clamp(80px, 9vw, 104px);
  padding-bottom: 32px;
}

@media (max-width: 992px) {
  .gallery-v2 {
    padding-top: 85px;
  }
}

/* Intro panel — full width above mosaic */
.gallery-v2 .proj-intro {
  margin: 40px;
  margin-bottom: 12px;
  background: var(--project-accent, #333);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.gallery-v2 .proj-intro .proj {
  background: var(--project-accent, #333);
  margin-top: 0;
}

.gallery-v2 .proj-intro.box--intro .proj {
  background: var(--project-accent, #333);
}

/* Mosaic grid */
.gallery-mosaic {
  --gallery-cols: 6;
  display: grid;
  grid-template-columns: repeat(var(--gallery-cols), minmax(0, 1fr));
  grid-auto-rows: minmax(clamp(180px, 28vw, 320px), auto);
  grid-auto-flow: dense;
  gap: 12px;
  margin: 40px;
  margin-top: 12px;
}

@media (max-width: 767.98px) {
  .gallery-v2 .proj-intro,
  .gallery-mosaic {
    margin-left: 20px;
    margin-right: 20px;
  }
}

.gallery-tile {
  --tile-cols: 2;
  --tile-rows: 1;
  --tile-fit: cover;
  grid-column: span var(--tile-cols);
  grid-row: span var(--tile-rows);
  margin: 0;
  background: #333;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: auto clamp(180px, 28vw, 320px);
}

.gallery-tile[data-cols="1"] { --tile-cols: 1; }
.gallery-tile[data-cols="2"] { --tile-cols: 2; }
.gallery-tile[data-cols="3"] { --tile-cols: 3; }
.gallery-tile[data-cols="4"] { --tile-cols: 4; }
.gallery-tile[data-cols="5"] { --tile-cols: 5; }
.gallery-tile[data-cols="6"] { --tile-cols: 6; }

.gallery-tile[data-rows="2"] { --tile-rows: 2; }

.gallery-v2[data-fit="contain"] .gallery-tile {
  --tile-fit: contain;
}

.gallery-v2[data-fit="contain"] .gallery-tile img,
.gallery-tile[data-fit="contain"] img {
  height: auto;
}

.gallery-tile[data-fit="contain"] {
  --tile-fit: contain;
}

.gallery-tile[data-fit="cover"] {
  --tile-fit: cover;
}

.gallery-tile__link {
  display: block;
  width: 100%;
  height: 100%;
  min-height: clamp(180px, 28vw, 320px);
  line-height: 0;
  position: relative;
  cursor: zoom-in;
}

.gallery-tile__link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.25s ease;
  pointer-events: none;
}

@media (hover: hover) {
  .gallery-tile__link:hover::after {
    background: rgba(0, 0, 0, 0.12);
  }

  .gallery-tile__link:hover img {
    transform: scale(1.055);
  }
}

.gallery-tile img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: clamp(180px, 28vw, 320px);
  object-fit: var(--tile-fit);
  object-position: center;
  transform: scale(1);
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}


.gallery-tile__link[data-vbtype="video"]::before {
  content: "\25B6";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 0.18rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  font-size: 1.05rem;
  line-height: 1;
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

/* Layout presets — 6-column rows must sum to 6 (e.g. 3+3 or 2+2+2) */
.gallery-v2[data-layout="brand-wide"] .gallery-tile:nth-child(5n + 1),
.gallery-v2[data-layout="brand-wide"] .gallery-tile:nth-child(5n + 2) {
  --tile-cols: 3;
}

.gallery-v2[data-layout="brand-wide"] .gallery-tile:nth-child(5n + 3),
.gallery-v2[data-layout="brand-wide"] .gallery-tile:nth-child(5n + 4),
.gallery-v2[data-layout="brand-wide"] .gallery-tile:nth-child(5n) {
  --tile-cols: 2;
}

.gallery-v2[data-layout="pub-spread"] .gallery-tile {
  --tile-fit: contain;
  --tile-cols: 3;
}

.gallery-v2[data-layout="pub-spread"] .gallery-tile:nth-child(2n + 1) {
  --tile-cols: 3;
}

.gallery-v2[data-layout="pub-spread"] .gallery-tile:nth-child(2n) {
  --tile-cols: 3;
}

.gallery-v2[data-layout="pub-spread"] .gallery-tile__link,
.gallery-v2[data-layout="pub-spread"] .gallery-tile img {
  min-height: clamp(220px, 30vw, 400px);
  height: auto;
}

.gallery-v2[data-layout="web-screen"] .gallery-tile {
  --tile-fit: contain;
  --tile-cols: 6;
  min-height: clamp(240px, 50vh, 560px);
}

.gallery-v2[data-layout="web-screen"] .gallery-tile__link,
.gallery-v2[data-layout="web-screen"] .gallery-tile img {
  min-height: clamp(240px, 50vh, 560px);
}

/* Mobile */
@media (max-width: 991px) {
  .gallery-mosaic {
    --gallery-cols: 2;
    grid-auto-rows: minmax(160px, auto);
  }

  .gallery-tile,
  .gallery-tile[data-cols],
  .gallery-v2[data-layout="brand-wide"] .gallery-tile,
  .gallery-v2[data-layout="pub-spread"] .gallery-tile,
  .gallery-v2[data-layout="web-screen"] .gallery-tile {
    --tile-cols: 2;
    --tile-rows: 1;
  }

  .gallery-v2[data-layout="pub-spread"] .gallery-tile:nth-child(3n + 1),
  .gallery-v2[data-layout="brand-wide"] .gallery-tile:nth-child(6n + 1) {
    --tile-cols: 2;
  }

  .gallery-v2 .proj-intro {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 480px) {
  .gallery-mosaic {
    --gallery-cols: 1;
  }

  .gallery-tile,
  .gallery-tile[data-cols] {
    --tile-cols: 1;
  }
}

/* Larger prev/next tap targets on v2 intro */
.gallery-v2 .controls button {
  width: 2.75rem;
  height: 2.75rem;
  min-width: 44px;
  min-height: 44px;
}

/* Expand hint — first tile on touch devices (image galleries only) */
@media (hover: none) {
  .gallery-v2 .gallery-tile:first-child:not(.media-detail-card) .gallery-tile__link::before {
    content: "Tap to enlarge";
    position: absolute;
    right: 0.65rem;
    bottom: 0.65rem;
    z-index: 2;
    padding: 0.35rem 0.55rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 2px;
    line-height: 1.2;
    pointer-events: none;
  }
}

/* Video embeds: no image-tile hover zoom */
@media (hover: hover) {
  .gallery-tile.media-detail-card .gallery-tile__link:hover::after {
    background: transparent;
  }

  .gallery-tile.media-detail-card .gallery-tile__link:hover img {
    transform: none;
  }
}

/* Compact video playback links — not oversized action bars */
.video-playback-options {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  justify-content: center;
  margin: 0.75rem 0 0.15rem;
  padding: 0 0.5rem;
}

.video-playback-options__link {
  align-items: center;
  color: rgba(255, 255, 255, 0.78);
  display: inline-flex;
  font-family: "Montserrat", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  gap: 0.4rem;
  letter-spacing: 0.06em;
  line-height: 1.2;
  padding: 0.35rem 0;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.video-playback-options__link i {
  font-size: 0.95rem;
  line-height: 1;
}

.video-playback-options__link--youtube i {
  color: #ff0000;
}

.video-playback-options__link--youtube:hover,
.video-playback-options__link--youtube:focus {
  color: #ff0000;
}

.video-playback-options__link--alt {
  color: rgba(255, 255, 255, 0.58);
}

.video-playback-options__link--alt:hover,
.video-playback-options__link--alt:focus {
  color: #fff;
}

.video-playback-options__sep {
  color: rgba(255, 255, 255, 0.16);
  font-size: 0.75rem;
  line-height: 1;
  user-select: none;
}

@media (max-width: 480px) {
  .video-playback-options {
    gap: 0.25rem 0.65rem;
  }

  .video-playback-options__link {
    font-size: 0.62rem;
    letter-spacing: 0.05em;
  }
}

/* Vanilla gallery lightbox (<dialog>) — replaces Venobox */
.gallery-lightbox {
  padding: 0;
  border: 0;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  background: rgba(12, 12, 12, 0.92);
  color: #fff;
}

.gallery-lightbox::backdrop {
  background: rgba(12, 12, 12, 0.92);
}

.gallery-lightbox__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 3.5rem 3rem 4rem;
  box-sizing: border-box;
  cursor: zoom-out;
}

.gallery-lightbox__figure {
  margin: 0;
  max-width: min(1200px, 92vw);
  width: 100%;
  cursor: default;
}

.gallery-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 8rem);
  width: auto;
  height: auto;
  margin: 0 auto;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}

.gallery-lightbox__caption {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.88);
}

.gallery-lightbox__count {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
}

.gallery-lightbox__close,
.gallery-lightbox__prev,
.gallery-lightbox__next {
  position: fixed;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  z-index: 2;
}

.gallery-lightbox__close {
  top: 0.35rem;
  right: 0.5rem;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  line-height: 1;
}

.gallery-lightbox__prev,
.gallery-lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  padding: 0;
}

.gallery-lightbox__prev {
  left: 0.75rem;
}

.gallery-lightbox__next {
  right: 0.75rem;
}

.gallery-lightbox__chevron {
  display: block;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top-color: rgba(255, 255, 255, 0.72);
  border-right-color: rgba(255, 255, 255, 0.72);
  margin: 0 auto;
}

.gallery-lightbox__prev .gallery-lightbox__chevron {
  transform: rotate(-135deg);
}

.gallery-lightbox__next .gallery-lightbox__chevron {
  transform: rotate(45deg);
}

.gallery-lightbox__close:hover,
.gallery-lightbox__close:focus-visible,
.gallery-lightbox__prev:hover,
.gallery-lightbox__prev:focus-visible,
.gallery-lightbox__next:hover,
.gallery-lightbox__next:focus-visible {
  color: #fff;
}
