/* ============================================================
   GALLERY PANE — editorial 10-tile grid
   Scoped under .gallery-section, .gallery-*, .work-item.
   ============================================================ */
.gallery-section {
  background: #fafaf7;
  color: #0a0a0a;
  padding: 80px 0 0;
  font-family: var(--font-body);
}

.gallery-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}

.gallery-section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0a0a0a;
  margin-bottom: 32px;
}

.gallery-section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: #0a0a0a;
}

.gallery-header {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 56px;
}

.gallery-headline {
  font-family: var(--font-display, var(--font-body));
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 0;
}

.gallery-headline em {
  font-style: italic;
  font-weight: 400;
  color: #555;
}

.gallery-header__right p {
  font-size: 14.5px;
  line-height: 1.6;
  color: #444;
  margin: 0 0 16px;
}

.gallery-element-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0a0a0a;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 12px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.gallery-element-btn:hover { opacity: 0.85; transform: translateY(-1px); }

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FFC217;
  box-shadow: 0 0 0 0 rgba(255,194,23,0.6);
  animation: gallery-pulse 2s ease-out infinite;
}

@keyframes gallery-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,194,23,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(255,194,23,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,194,23,0); }
}

/* ── 10-TILE GRID ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  padding: 0 48px;
  max-width: 1440px;
  margin: 0 auto 80px;
}

.work-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #1a1a1a;
  cursor: pointer;
  min-height: 360px;
  isolation: isolate;
}

.work-item__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-item__image,
.work-item__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-item:hover .work-item__media,
.work-item:hover .work-item__image,
.work-item:hover .work-item__video { transform: scale(1.05); }

.work-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.85) 100%);
  z-index: 1;
}

.work-item__meta {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 2;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.work-item__tag {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FFC217;
  margin-bottom: 4px;
}

.work-item__title {
  font-family: var(--font-display, var(--font-body));
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

.work-item__client {
  font-size: 12.5px;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}

.work-item__metric {
  font-size: 11.5px;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.work-item__ask {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.work-item:hover .work-item__ask {
  opacity: 1;
  transform: translateY(0);
}

.work-item__ask-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFC217;
}

/* layout — hero tiles + standard tiles */
.work-item:nth-child(1) { grid-column: span 8; grid-row: span 2; min-height: 600px; }
.work-item:nth-child(2) { grid-column: span 4; min-height: 360px; }
.work-item:nth-child(3) { grid-column: span 4; min-height: 360px; }
.work-item:nth-child(4) { grid-column: span 6; min-height: 360px; }
.work-item:nth-child(5) { grid-column: span 6; min-height: 360px; }
.work-item:nth-child(6) { grid-column: span 6; grid-row: span 2; min-height: 500px; }
.work-item:nth-child(7) { grid-column: span 6; min-height: 360px; }
.work-item:nth-child(8) { grid-column: span 6; min-height: 360px; }
.work-item:nth-child(9) { grid-column: span 4; min-height: 360px; }
.work-item:nth-child(10) { grid-column: span 8; min-height: 360px; }

/* ── FOOTER CTA ── */
.gallery-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 56px 0 80px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.gallery-footer h3 {
  font-family: var(--font-display, var(--font-body));
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.gallery-footer p {
  font-size: 14.5px;
  color: #555;
  margin: 0;
}

.gallery-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0a0a0a;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 14px 26px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.gallery-cta:hover { opacity: 0.85; transform: translateY(-1px); }

@media (max-width: 900px) {
  .gallery-section { padding-top: 48px; }
  .gallery-container { padding: 0 24px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 12px; padding: 0 24px; margin-bottom: 48px; }
  .gallery-grid .work-item { grid-column: 1 / -1 !important; grid-row: auto !important; min-height: 280px !important; }
  .gallery-header { grid-template-columns: 1fr; gap: 28px; align-items: start; margin-bottom: 36px; }
  .gallery-footer { flex-direction: column; align-items: flex-start; padding: 40px 0 56px; }
  .work-item__ask { opacity: 1; transform: none; }
}
