@import url("./style.css?v=20260801-nav1");

.gallery-item {
  overflow: hidden;
}

.gallery-item figure {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.gallery-item__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.gallery-item__button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}

.gallery-item__button:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 3px;
}

.gallery-item__caption {
  color: var(--muted);
}

.lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  width: min(92vw, 1100px);
  max-width: none;
  max-height: 90vh;
  padding: 0;
  overflow: visible;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #120e0c;
  color: var(--text);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
}

.gallery-lightbox::backdrop {
  background: rgba(7, 5, 4, 0.88);
  backdrop-filter: blur(5px);
}

.gallery-lightbox__image {
  display: block;
  width: 100%;
  max-height: calc(90vh - 3.5rem);
  object-fit: contain;
  border-radius: var(--radius) var(--radius) 0 0;
}

.gallery-lightbox__caption {
  min-height: 3.5rem;
  padding: 0.85rem 1rem;
  color: var(--muted);
}

.gallery-lightbox__close {
  position: absolute;
  z-index: 2;
  top: 0.65rem;
  right: 0.65rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(18, 14, 12, 0.82);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__close:focus-visible {
  background: var(--accent);
  color: #1c1009;
}
