/* ================================
   OPTIKA LARUM – FOTOGALERIE
================================ */

.larum-gallery {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.larum-gallery-item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f4f4f4;
  cursor: zoom-in;
}

.larum-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.larum-gallery-item:hover img {
  transform: scale(1.035);
}

/* MALÁ IKONA ZVĚTŠENÍ */

.larum-gallery-item::after {
  content: "↗";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(20, 20, 20, 0.78);
  color: #fff;
  font-size: 18px;
  line-height: 1;

  pointer-events: none;
}

/* ================================
   LIGHTBOX
================================ */

.larum-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 40px 70px;

  background: rgba(0, 0, 0, 0.92);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.larum-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.larum-lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
}

/* ZAVŘÍT */

.larum-lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;

  width: 46px;
  height: 46px;

  border: 0;
  background: transparent;
  color: #fff;

  font-size: 42px;
  font-weight: 300;
  line-height: 1;

  cursor: pointer;
}

/* ŠIPKY */

.larum-lightbox-prev,
.larum-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 50px;
  height: 60px;

  border: 0;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;

  font-size: 44px;
  line-height: 1;

  cursor: pointer;
}

.larum-lightbox-prev {
  left: 15px;
}

.larum-lightbox-next {
  right: 15px;
}

.larum-lightbox-prev:hover,
.larum-lightbox-next:hover {
  background: rgba(0, 0, 0, 0.65);
}

/* ================================
   TABLET
================================ */

@media (max-width: 900px) {

  .larum-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

}

/* ================================
   MOBIL
================================ */

@media (max-width: 600px) {

  .larum-gallery {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .larum-gallery-item {
    aspect-ratio: 4 / 3;
  }

  .larum-lightbox {
    padding: 55px 15px;
  }

  .larum-lightbox img {
    max-width: 100%;
    max-height: 82vh;
  }

  .larum-lightbox-prev,
  .larum-lightbox-next {
    width: 42px;
    height: 52px;
    font-size: 36px;
  }

  .larum-lightbox-prev {
    left: 5px;
  }

  .larum-lightbox-next {
    right: 5px;
  }

}