.gallery-page {
  padding: 2rem 0 4rem;
}
.gallery-section-head,
.gallery-detail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}
.gallery-section-head h2 {
  margin: .3rem 0 .25rem;
  color: #234d20;
  font-size: 1.5rem;
  font-weight: 750;
}
.gallery-section-head p {
  margin: 0;
  color: #748070;
}
.gallery-kicker {
  color: #3f8735;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.gallery-count {
  display: inline-flex;
  flex: 0 0 auto;
  padding: .42rem .8rem;
  border-radius: 999px;
  color: #2f7d32;
  background: #edf6e9;
  font-size: .82rem;
  font-weight: 700;
}
.gallery-album-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}
.gallery-album-card {
  overflow: hidden;
  border: 1px solid #e0e9dd;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(34, 73, 34, .07);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.gallery-album-card:hover {
  border-color: rgba(76, 150, 47, .32);
  box-shadow: 0 20px 42px rgba(34, 73, 34, .13);
  transform: translateY(-4px);
}
.gallery-album-cover {
  position: relative;
  display: block;
  height: 280px;
  overflow: hidden;
  background: #edf4ea;
}
.gallery-album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}
.gallery-album-card:hover .gallery-album-cover img {
  transform: scale(1.055);
}
.gallery-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(18, 49, 20, .38));
}
.gallery-open-icon {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  color: #285b2a;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 8px 20px rgba(20, 50, 22, .16);
  transition: color .2s ease, background .2s ease;
}
.gallery-album-card:hover .gallery-open-icon {
  color: #fff;
  background: #2f7d32;
}
.gallery-album-body {
  padding: 1.25rem 1.3rem 1.35rem;
}
.gallery-album-label {
  color: #94720b;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.gallery-album-body h3 {
  margin: .45rem 0 .5rem;
  font-size: 1.15rem;
  line-height: 1.4;
}
.gallery-album-body h3 a {
  color: #294b27;
}
.gallery-album-body p {
  display: -webkit-box;
  min-height: 3em;
  margin-bottom: .9rem;
  overflow: hidden;
  color: #748070;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.gallery-album-link,
.gallery-back-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #2f7d32;
  font-size: .86rem;
  font-weight: 700;
}
.gallery-album-link:hover,
.gallery-back-link:hover {
  color: #245f27;
}
.gallery-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 220px;
  gap: .9rem;
}
.gallery-photo {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 17px;
  background: #eaf2e7;
  box-shadow: 0 10px 28px rgba(34, 73, 34, .08);
}
.gallery-photo-featured {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-photo:hover img {
  transform: scale(1.06);
}
.gallery-photo-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(17, 40, 19, .7));
  opacity: .72;
  transition: opacity .2s ease;
}
.gallery-photo:hover .gallery-photo-shade {
  opacity: 1;
}
.gallery-photo-zoom {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  color: #fff;
  background: rgba(22, 57, 25, .48);
  backdrop-filter: blur(7px);
  transform: translateY(-6px);
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
}
.gallery-photo:hover .gallery-photo-zoom {
  opacity: 1;
  transform: translateY(0);
}
.gallery-photo-caption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  color: #fff;
}
.gallery-photo-caption small,
.gallery-photo-caption strong {
  display: block;
}
.gallery-photo-caption small {
  margin-bottom: .2rem;
  color: rgba(255, 255, 255, .78);
  font-size: .72rem;
}
.gallery-photo-caption strong {
  overflow: hidden;
  font-size: .88rem;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gallery-empty {
  padding: 3.5rem 1.25rem;
  border: 1px dashed #cdddc8;
  border-radius: 20px;
  text-align: center;
  background: #fbfdf9;
}
.gallery-empty-icon {
  display: inline-flex;
  width: 72px;
  height: 72px;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 50%;
  color: #4c962f;
  background: #eaf5e6;
  font-size: 1.7rem;
}
.gallery-empty h3 {
  margin-bottom: .4rem;
  color: #294b27;
  font-size: 1.15rem;
}
.gallery-empty p {
  max-width: 480px;
  margin: 0 auto 1.15rem;
  color: #748070;
}
@media (max-width: 991.98px) {
  .gallery-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767.98px) {
  .gallery-album-grid {
    grid-template-columns: 1fr;
  }
  .gallery-album-cover {
    height: 250px;
  }
  .gallery-photo-grid {
    grid-auto-rows: 190px;
  }
}
@media (max-width: 575.98px) {
  .gallery-page {
    padding-top: 1.25rem;
  }
  .gallery-section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .gallery-album-cover {
    height: 220px;
  }
  .gallery-photo-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 230px;
  }
  .gallery-photo-featured {
    grid-column: span 1;
    grid-row: span 1;
  }
  .gallery-photo-zoom {
    opacity: 1;
    transform: none;
  }
}
