.hero {
    padding-bottom: 80px;
    width: 100%;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    color: black;
}

.hero-heading {
    font-size: 100px;
    margin-bottom: 40px;
    font-family: 'Work Sans', serif;
    font-weight: 800;
}

.hero-content p{
    margin-top: 40px;
    font-size: 18px;
    width: 60%;
    line-height: 1.4;
}

.hero-bg-image {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-bg-image img {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1s ease-in-out;
}

/* ===== Gallery Container ===== */
.gallery-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  max-width: 900px;
  margin: 0 auto;
}

/* ===== Gallery preview ===== */
.gallery-image {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  max-height: 500px;
  cursor: zoom-in;
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.6s ease;
  padding-top: 30px;
}

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

/* ===== Caption inside preview ===== */
.gallery-caption {
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  width: 100%;
  padding: 16px;
  text-align: center;
  font-size: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}
.gallery-image:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Lightbox (fullscreen) ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  overflow: hidden;
}

.lightbox.active {
  display: flex;
  animation: fadeIn 0.4s ease forwards;
}

/* Контейнер для картинки и подписи */
.lightbox-content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: scale(0.9);
  animation: zoomIn 0.6s ease forwards;
}

/* === УБРАНО увеличение при наведении === */
.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 10px;
  transition: transform 0.6s ease;
  cursor: zoom-out;
}

/* ===== Caption поверх изображения ===== */
.lightbox-caption {
  position: absolute;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: #fff;
  width: 90%;
  padding: 25px;
  font-size: 18px;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}
.lightbox.active .lightbox-caption {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Arrows & Close ===== */
.lightbox .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  color: white;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s;
}
.lightbox .arrow.left { left: 50px; }
.lightbox .arrow.right { right: 50px; }
.lightbox .arrow:hover { color: #ffae00; }

.lightbox .close {
  position: absolute;
  top: 25px;
  right: 40px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s;
}
.lightbox .close:hover { color: #ff4b4b; }

/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes zoomIn {
  from { transform: scale(0.85); }
  to { transform: scale(1); }
}