/* ============================================
   WORK — page styles
   ============================================ */

.work-grid {
  padding: 0 48px 48px;
}

.work-grid__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.work-grid__row:last-child { margin-bottom: 0; }

.tile {
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  background: var(--c-cream-dark);
}

.tile--reel { aspect-ratio: 9/16; }
.tile--post { aspect-ratio: 4/5; }

.tile--empty {
  border: 1px dashed rgba(25, 40, 65, 0.25);
  background: transparent;
}

.tile video,
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tile .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-style: italic;
  text-align: center;
  padding: 12px;
  opacity: 0.5;
  border: none;
}

.tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(25, 40, 65, 0.55) 0%, rgba(25, 40, 65, 0) 50%);
  pointer-events: none;
}

.tile__meta {
  display: contents;
}

.tile__type {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(25, 40, 65, 0.85);
  color: var(--c-cream);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 1px;
  z-index: 2;
}

.tile__name {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  color: var(--c-cream);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.3px;
  line-height: 1.15;
  text-shadow: 0 1px 8px rgba(25, 40, 65, 0.6);
  z-index: 2;
}


/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .work-grid__row { grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 8px; }
}

@media (max-width: 768px) {
  .h1-big { font-size: 48px; letter-spacing: -2px; }
  .section { padding: 32px 20px; }
  .work-grid { padding: 0 14px 24px; }
  .work-grid__row { grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 6px; }
  .tile__type { font-size: 7px; padding: 3px 6px; top: 6px; left: 6px; letter-spacing: 0.5px; }
  .tile__name { font-size: 9px; bottom: 6px; left: 6px; right: 6px; letter-spacing: -0.2px; line-height: 1.1; }
  
  /* Hide mute button on mobile — tap on tile instead */
  .tile__mute { display: none; }
  
  /* When tile is playing sound, show subtle orange ring */
  .tile.is-playing-audio { 
    outline: 2px solid var(--c-orange);
    outline-offset: -2px;
  }
  
  .nav { padding: 16px 24px; gap: 16px; }
  .nav__links { font-size: 11px; gap: 18px; }
  .footer__cols { grid-template-columns: 1fr; }
  .footer__farewell-line { font-size: 40px; letter-spacing: -1.5px; }
}

/* ============ TAP-TO-MUTE (tile is clickable, no separate button) ============ */
.tile__mute { display: none !important; }

.tile { cursor: pointer; }

/* Visual indicator when this tile is playing audio */
.tile.is-playing-audio {
  outline: 2px solid var(--c-orange);
  outline-offset: -2px;
}
