/* Gallery albums — list + detail */
.gallery-hero {
  padding: 2.5rem 0 1.5rem;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(133, 0, 62, 0.08), transparent 55%),
    linear-gradient(180deg, #f7f4f1 0%, #fff 100%);
}
.gallery-hero__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-end;
  justify-content: space-between;
}
.gallery-hero__text h1 {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.gallery-hero__text p {
  margin: 0;
  max-width: 38rem;
  opacity: 0.85;
  line-height: 1.7;
}
.gallery-breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.92rem;
}
.gallery-breadcrumb a { color: #85003e; text-decoration: none; }
.gallery-search {
  display: flex;
  gap: 0.5rem;
  min-width: min(100%, 320px);
}
.gallery-search input {
  flex: 1;
  border: 1px solid #d8d0c8;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  background: #fff;
}
.gallery-search button {
  border: 0;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  background: #85003e;
  color: #fff;
  cursor: pointer;
}
.gallery-section { padding: 1.25rem 0 3rem; }
.gallery-count {
  margin: 0 0 1rem;
  opacity: 0.7;
  font-size: 0.92rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
}
.gallery-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.gallery-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ebe4dc;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(40, 20, 10, 0.08);
}
.gallery-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #efe8e1;
  overflow: hidden;
}
.gallery-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-card__placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  opacity: 0.55;
}
.gallery-card__count {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  background: rgba(20, 10, 8, 0.72);
  color: #fff;
  font-size: 0.78rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}
.gallery-card__body {
  padding: 0.85rem 0.95rem 1rem;
}
.gallery-card__body h2,
.gallery-card__body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  line-height: 1.45;
}
.gallery-card__body time {
  display: block;
  font-size: 0.82rem;
  opacity: 0.65;
  margin-bottom: 0.35rem;
}
.gallery-card__body p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.8;
}
.gallery-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}
.gallery-photo {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #f3eee8;
  border: 1px solid #ebe4dc;
}
.gallery-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}
.gallery-photo figcaption {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  font-size: 0.85rem;
  line-height: 1.45;
}
.gallery-photo time { opacity: 0.65; white-space: nowrap; }
.gallery-related { margin-top: 2.5rem; }
.gallery-related h2 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
}
.gallery-pagination {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.75rem;
}
.gallery-pagination a {
  color: #85003e;
  text-decoration: none;
  font-weight: 600;
}
.gallery-empty {
  padding: 2rem;
  text-align: center;
  opacity: 0.7;
}
@media (max-width: 640px) {
  .gallery-hero__inner { flex-direction: column; align-items: stretch; }
  .gallery-search { min-width: 0; }
}
