/* Four completed-project photographic galleries only. */
.showcase-page .showcase-gallery {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(14px, 1.7vw, 24px);
}
.showcase-page .showcase-gallery-card,
.showcase-page .showcase-gallery-card:nth-child(5n+1) {
  grid-column: span 2;
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 3px;
  background: #102934;
}
.showcase-page .showcase-gallery--count-7 .showcase-gallery-card:first-child {
  grid-column: 1 / -1;
}
.showcase-page .showcase-gallery-trigger {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: #102934;
  color: #fff;
  text-align: left;
  cursor: zoom-in;
}
.showcase-page .showcase-gallery-card picture,
.showcase-page .showcase-gallery-card:nth-child(5n+1) picture {
  display: block;
  aspect-ratio: 4 / 3;
}
.showcase-page .showcase-gallery--count-7 .showcase-gallery-card:first-child picture {
  aspect-ratio: 16 / 9;
}
.showcase-page .showcase-gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.showcase-page .showcase-gallery-caption {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 5px;
  padding: 38px clamp(14px, 2vw, 25px) clamp(15px, 2vw, 24px);
  background: linear-gradient(transparent, rgba(4, 13, 18, .94));
  color: #fff;
  pointer-events: none;
}
.showcase-page .showcase-gallery-caption strong {
  color: #fff;
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  line-height: 1.25;
}
.showcase-page .showcase-gallery-caption span {
  font-size: .83rem;
  line-height: 1.45;
  color: rgba(255,255,255,.88);
}
.showcase-page .showcase-gallery-trigger:focus-visible {
  outline: 4px solid #59d9ef;
  outline-offset: -5px;
}
.showcase-lightbox[hidden] { display: none !important; }
.showcase-lightbox {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(8px, 2vw, 24px);
  background: rgba(2, 9, 13, .97);
  color: #fff;
}
.showcase-lightbox-panel {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: clamp(4px, 1vw, 16px);
  width: min(100%, 1580px);
  max-height: 100%;
}
.showcase-lightbox-figure {
  display: grid;
  gap: 10px;
  min-width: 0;
  max-height: calc(100dvh - 48px);
  margin: 0;
  background: #07151d;
  font-style: normal;
}
.showcase-lightbox-figure img {
  display: block;
  width: 100%;
  max-height: calc(100dvh - 150px);
  object-fit: contain;
}
.showcase-page .showcase-lightbox-figure figcaption {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border: 0;
  background: #07151d;
  color: #fff;
  text-align: left;
  font-family: Arial, Helvetica, sans-serif;
  font-style: normal;
}
.showcase-page .showcase-lightbox-title { color: #fff; font-size: 1.05rem; font-style: normal; }
.showcase-lightbox-description { color: rgba(255,255,255,.77); font-size: .9rem; font-style: normal; line-height: 1.4; }
.showcase-lightbox-close,
.showcase-lightbox-prev,
.showcase-lightbox-next {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  background: #102934;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.showcase-lightbox-close { position: absolute; top: 0; right: 0; z-index: 1; }
.showcase-lightbox-close:hover,
.showcase-lightbox-prev:hover,
.showcase-lightbox-next:hover { background: #255666; }
.showcase-lightbox button:focus-visible { outline: 3px solid #59d9ef; outline-offset: 3px; }
@media (max-width: 1000px) {
  .showcase-page .showcase-gallery-card,
  .showcase-page .showcase-gallery-card:nth-child(5n+1) { grid-column: span 3; }
  .showcase-page .showcase-gallery--count-7 .showcase-gallery-card:first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .showcase-page .showcase-gallery-card,
  .showcase-page .showcase-gallery-card:nth-child(5n+1) { grid-column: 1 / -1; }
  .showcase-page .showcase-gallery--count-7 .showcase-gallery-card:first-child picture { aspect-ratio: 4 / 3; }
  .showcase-lightbox { padding: 8px; }
  .showcase-lightbox-panel { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 2px; }
  .showcase-lightbox-close,
  .showcase-lightbox-prev,
  .showcase-lightbox-next { width: 44px; height: 44px; }
  .showcase-lightbox-figure img { max-height: calc(100dvh - 190px); }
  .showcase-lightbox-figure figcaption { font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  .showcase-page .showcase-gallery-card img { transition: none; }
}
