.gallery-page {
  min-height: 70vh;
  padding:60px 0;
  background: #f4f4f3;
}

.gallery-container {
  width: min(92%, 1220px);
}

.gallery-page-header {
  margin-bottom: 44px;
  text-align: center;
}

body .gallery-page-title {
  padding-top: 0;
  color: #005038;
  font-size: 52px;
  line-height: 1.15;
  letter-spacing: 0;
}

.gallery-album-grid,
.gallery-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 34px;
}

.gallery-album-item {
  min-width: 0;
}

.gallery-album-title {
  min-height: 44px;
  margin: 0 0 10px;
  color: #005038;
  font-family: semi_font, sans-serif;
  font-size: 16px;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0;
}

.gallery-album-title a {
  color: inherit;
  text-decoration: none;
}

.gallery-album-cover,
.gallery-photo-link {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 5px;
  background: #e7e9e6;
}

.gallery-album-image,
.gallery-photo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-album-cover:hover .gallery-album-image,
.gallery-photo-link:hover .gallery-photo-image {
  transform: scale(1.035);
}

.gallery-view-button {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 90px;
  padding: 7px 16px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-family: reg_font, sans-serif;
  font-size: 13px;
  line-height: 1;
  text-align: center;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.gallery-album-cover:hover .gallery-view-button {
  background: #005038;
  color: #fff;
}

.gallery-detail-page .gallery-page-header {
  margin-bottom: 42px;
}

.gallery-empty {
  margin: 0;
  color: #325e3c;
  text-align: center;
}

.lg-backdrop {
  background-color: #0b1712;
}

.lg-outer .lg-thumb-item.active,
.lg-outer .lg-thumb-item:hover {
  border-color: #6fc066;
}

@media (max-width: 1024px) {
  .gallery-album-grid,
  .gallery-detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 24px;
  }
}

@media (max-width: 767px) {
  .gallery-page {
    padding: 60px 0;
  }

  .gallery-page-header {
    margin-bottom: 30px;
  }

  body .gallery-page-title {
    font-size: 38px;
  }

  .gallery-album-grid,
  .gallery-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 14px;
  }

  .gallery-album-title {
    min-height: 39px;
    font-size: 14px;
  }

  .gallery-view-button {
    top: 8px;
    right: 8px;
    min-width: 0;
    padding: 7px 12px;
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .gallery-detail-grid {
    grid-template-columns: 1fr;
  }
}
