.clickable-image {
  cursor: zoom-in;
}

.clickable-image:focus-visible {
  outline: 4px solid var(--forest);
  outline-offset: 4px;
}

.gallery-item.clickable-image img,
.aside-image.clickable-image img {
  transition: transform 360ms ease;
}

.gallery-item.clickable-image:hover img,
.aside-image.clickable-image:hover img,
.gallery-item.clickable-image:focus-visible img,
.aside-image.clickable-image:focus-visible img {
  transform: scale(1.03);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(9, 12, 10, 0.92);
  padding: 20px;
  backdrop-filter: blur(12px);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-panel {
  width: min(1120px, 100%);
  max-height: 92vh;
}

.lightbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  color: var(--white);
}

.lightbox-top h2 {
  margin: 0;
  color: var(--white);
  font-size: 1.15rem;
}

.close-lightbox {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
}

.close-lightbox svg,
.lightbox-nav svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.lightbox-stage {
  position: relative;
  display: grid;
  place-items: center;
}

.lightbox-stage img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  background: #000;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background: rgba(31, 29, 30, 0.68);
  color: var(--white);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 180ms ease, transform 180ms ease;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible,
.close-lightbox:hover,
.close-lightbox:focus-visible {
  background: var(--forest);
  outline: none;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  transform: translateY(-50%) scale(1.04);
}

.lightbox-prev {
  left: 12px;
}

.lightbox-next {
  right: 12px;
}

.lightbox-counter {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  text-align: center;
}
