/* Consultant page — work grid */
.work-section {
  padding: clamp(5rem, 8vw, 7rem) clamp(1.5rem, 6vw, 6rem);
  overflow: visible;
}

.work-section__inner {
  max-width: 84rem;
  margin: 0 auto;
  overflow: visible;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 1.5vw, 1.5rem);
  overflow: visible;
}

@media (max-width: 1000px) {
  .work-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}

/* Buttons reset for tile */
.work-item {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: zoom-in;
  display: block;
  width: 100%;
  position: relative;
}

.work-item__image {
  width: 100%;
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
  background-color: #1a1815;
  overflow: hidden;
  filter: grayscale(1) contrast(1.05);
  transform: scale(1);
  transition:
    transform 0.45s cubic-bezier(0.19, 1, 0.22, 1),
    filter 0.45s ease;
  will-change: transform;
}

.work-item:hover .work-item__image,
.work-item:focus-visible .work-item__image {
  transform: scale(1.02);
  filter: grayscale(1) contrast(1.08);
}

.work-item:focus-visible {
  outline: 2px solid #d9a653;
  outline-offset: 4px;
}

/* Mugler — recenter on Zombie Boy (far right of source image) */
.work-item--mugler .work-item__image {
  background-position: 85% center;
}

.work-item figcaption {
  margin-top: 0.85rem;
}

.work-item__title {
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(0.98rem, 1.05vw, 1.1rem);
  font-weight: 500;
  color: #1a1815;
  margin: 0;
  line-height: 1.3;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 14, 12, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
  padding: clamp(2rem, 4vw, 4rem);
  cursor: zoom-out;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease;
}

.lightbox__frame {
  margin: 0;
  max-width: min(92vw, 1600px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  cursor: default;
  transform: scale(0.98);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.4s ease;
}

.lightbox.is-open .lightbox__frame {
  transform: scale(1);
  opacity: 1;
}

.lightbox__image {
  max-width: 100%;
  max-height: calc(90vh - 3rem);
  width: auto;
  height: auto;
  display: block;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.7);
}

.lightbox__caption {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250, 245, 232, 0.72);
  margin: 0;
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: clamp(1rem, 2vw, 2rem);
  right: clamp(1rem, 2vw, 2rem);
  width: 44px;
  height: 44px;
  border: 1px solid rgba(250, 245, 232, 0.35);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
  padding: 0;
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
  border-color: rgba(250, 245, 232, 0.85);
  transform: rotate(90deg);
  outline: none;
}

.lightbox__close span {
  position: absolute;
  width: 18px;
  height: 1px;
  background: #faf5e8;
}

.lightbox__close span:first-child { transform: rotate(45deg); }
.lightbox__close span:last-child { transform: rotate(-45deg); }

@media (max-width: 720px) {
  .lightbox {
    padding: 1rem;
  }
  .lightbox__image {
    max-height: calc(88vh - 3rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-item__image,
  .lightbox,
  .lightbox__frame,
  .lightbox__close {
    transition: none !important;
  }
  .work-item:hover .work-item__image { transform: none; }
}
