/* Gallery page specific styles (templates/public/gallery/index.html.twig) */

.gallery-item {
  overflow: hidden;
}

.gallery-open-btn {
  cursor: zoom-in;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.gallery-item img {
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-img--featured {
  width: 100%;
  height: 100%;
}

.gallery-grid-desktop {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.gallery-modal[hidden] {
  display: none !important;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
}

.gallery-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

.gallery-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 1200px);
  max-height: 92vh;
  margin: 4vh auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal__image {
  max-width: 100%;
  max-height: 92vh;
  border-radius: 0.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  background: #111;
}

.gallery-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

