.gallery-preview-section {
  padding: 80px 20px;
  background: #f7fbff;
  text-align: center;
}

.gallery-preview-section h2 {
  margin-bottom: 10px;
}

.gallery-preview-section p {
  margin-bottom: 30px;
  color: #555;
}

.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.gallery-preview-grid img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease;
}

.gallery-preview-grid img:hover {
  transform: scale(1.03);
}

.gallery-preview-btn-wrap {
  margin-top: 30px;
}

.gallery-preview-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #00a6d6;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  transition: background 0.25s ease;
}

.gallery-preview-btn:hover {
  background: #008bb4;
}

.gallery-page {
  padding: 40px 20px 80px;
}

.gallery-page-section {
  text-align: center;
}

.gallery-page-section h1 {
  margin-bottom: 10px;
}

.gallery-page-section p {
  margin-bottom: 30px;
  color: #555;
}

.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.gallery-page-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease;
}

.gallery-page-grid img:hover {
  transform: scale(1.03);
}

.gallery-preview-section {
  padding: 100px 20px;
  background: linear-gradient(
    180deg,
    rgba(79,179,255,.08) 0%,
    rgba(255,255,255,1) 48%,
    rgba(30,90,166,.05) 100%
  );
}

.gallery-preview-container {
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-preview-header {
  text-align: center;
  margin-bottom: 55px;
}

.gallery-preview-header h2 {
  font-size: 52px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 18px;
}

.gallery-preview-header p {
  max-width: 820px;
  margin: 0 auto;
  font-size: 22px;
  line-height: 1.7;
  color: rgba(30, 90, 166, 0.82);
}

.gallery-preview-box {
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(79,179,255,.22);
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 18px 55px rgba(30,90,166,.10);
  backdrop-filter: blur(8px);
}

.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.gallery-preview-item {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(79,179,255,.10), rgba(30,90,166,.06));
  border: 1px solid rgba(79,179,255,.24);
  box-shadow: 0 12px 28px rgba(30,90,166,.10);
  transition: .25s ease;
}

.gallery-preview-item:hover {
  transform: translateY(-3px);
  border-color: rgba(30,90,166,.22);
  box-shadow: 0 18px 45px rgba(30,90,166,.16);
}

.gallery-preview-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.gallery-preview-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 16px;
  background: linear-gradient(
    180deg,
    rgba(14,42,71,0) 0%,
    rgba(14,42,71,.72) 100%
  );
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
}

.gallery-preview-btn-wrap {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

.gallery-preview-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, rgba(79,179,255,1), rgba(30,90,166,.96));
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(30,90,166,.18);
  transition: .25s ease;
}

.gallery-preview-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(30,90,166,.22);
}

/* =========================
   GALÉRIA – PODSTRÁNKA
========================= */
.gallery-page {
  padding: 70px 20px 90px;
  background: linear-gradient(
    180deg,
    rgba(79,179,255,.08) 0%,
    rgba(255,255,255,1) 45%,
    rgba(30,90,166,.05) 100%
  );
}

.gallery-page-container {
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-page-header {
  text-align: center;
  margin-bottom: 55px;
}

.gallery-page-header h1 {
  font-size: 52px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 18px;
}

.gallery-page-header p {
  max-width: 860px;
  margin: 0 auto;
  font-size: 22px;
  line-height: 1.7;
  color: rgba(30, 90, 166, 0.82);
}

.gallery-page-box {
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(79,179,255,.22);
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 18px 55px rgba(30,90,166,.10);
  backdrop-filter: blur(8px);
}

.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-page-item {
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(79,179,255,.10), rgba(30,90,166,.06));
  border: 1px solid rgba(79,179,255,.24);
  box-shadow: 0 12px 28px rgba(30,90,166,.10);
  transition: .25s ease;
}

.gallery-page-item:hover {
  transform: translateY(-3px);
  border-color: rgba(30,90,166,.22);
  box-shadow: 0 18px 45px rgba(30,90,166,.16);
}

.gallery-page-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.gallery-page-caption {
  padding: 14px 16px 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
  text-align: left;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .gallery-preview-section,
  .gallery-page {
    padding: 70px 14px;
  }

  .gallery-preview-header h2,
  .gallery-page-header h1 {
    font-size: 40px;
  }

  .gallery-preview-header p,
  .gallery-page-header p {
    font-size: 19px;
  }

  .gallery-preview-box,
  .gallery-page-box {
    padding: 20px;
    border-radius: 22px;
  }

  .gallery-preview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .gallery-page-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .gallery-preview-item,
  .gallery-page-item {
    border-radius: 18px;
  }

  .gallery-preview-item img {
    height: 210px;
  }

  .gallery-page-item img {
    height: 240px;
  }
}

@media (max-width: 600px) {
  .gallery-preview-section,
  .gallery-page {
    padding: 60px 12px;
  }

  .gallery-preview-header,
  .gallery-page-header {
    margin-bottom: 35px;
  }

  .gallery-preview-header h2,
  .gallery-page-header h1 {
    font-size: 28px;
  }

  .gallery-preview-header p,
  .gallery-page-header p {
    font-size: 16px;
    line-height: 1.6;
  }

  .gallery-preview-box,
  .gallery-page-box {
    padding: 16px;
  }

  .gallery-preview-grid,
  .gallery-page-grid {
    grid-template-columns: 1fr;
  }

  .gallery-preview-item img,
  .gallery-page-item img {
    height: 220px;
  }

  .gallery-preview-btn {
    width: 100%;
  }
}

.gallery-preview-grid img,
.gallery-page-grid img {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(14, 42, 71, 0.88);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 9999;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-image {
  max-width: min(1100px, 92vw);
  max-height: 85vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: 22px;
  border: 1px solid rgba(79,179,255,.24);
  box-shadow: 0 18px 55px rgba(0,0,0,.28);
  background: #fff;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
  color: #fff;
  background: linear-gradient(135deg, rgba(79,179,255,1), rgba(30,90,166,.96));
  box-shadow: 0 12px 28px rgba(30,90,166,.22);
  transition: transform .2s ease, box-shadow .2s ease;
}

.lightbox-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(30,90,166,.28);
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .lightbox {
    padding: 14px;
  }

  .lightbox-image {
    max-width: 94vw;
    max-height: 78vh;
    border-radius: 16px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 46px;
    height: 46px;
    font-size: 28px;
  }
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 28px;
  color: #fff;
  background: linear-gradient(135deg, rgba(79,179,255,1), rgba(30,90,166,.96));
  box-shadow: 0 12px 28px rgba(30,90,166,.22);
  z-index: 10001;
}

.lightbox-arrow-left {
  left: 18px;
}

.lightbox-arrow-right {
  right: 18px;
}

.lightbox-image {
  position: relative;
  z-index: 10000;
}
