html {
  scroll-padding-top: var(--header-height-mobile);
}

@media (min-width: 1024px) {
  html {
    scroll-padding-top: var(--header-height-desktop);
  }
}

.hero-gallery {
  background: radial-gradient(circle at top left, #fdf7ee, #f1e3d3);
}

.hero-gallery .hero-inner {
  align-items: center;
}

.hero-gallery .hero-lead {
  max-width: 34rem;
}

.hero-media-gallery {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-glass);
}

.section-gallery-filters {
  padding-top: 0;
}

.gallery-filters-header {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.gallery-filters-header .lead {
  font-size: var(--text-md);
}

.gallery-filters {
  margin-top: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.gallery-filter-btn {
  border-radius: var(--radius-full);
  border: 1px solid rgba(201, 139, 95, 0.4);
  padding: 0.5rem 1.1rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text-soft);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease, border-color 0.18s ease;
  max-width: 100%;
}

.gallery-filter-btn:hover {
  background: rgba(201, 139, 95, 0.95);
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(201, 139, 95, 0.45);
  transform: translateY(-1px);
}

.gallery-filter-btn.is-active {
  background: linear-gradient(135deg, rgba(201, 139, 95, 0.1), rgba(201, 139, 95, 0.9));
  color: #fff;
  border-color: rgba(201, 139, 95, 0.9);
  box-shadow: 0 16px 34px rgba(201, 139, 95, 0.5);
}

.gallery-filters-note {
  margin-top: var(--space-md);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.section-gallery-grid {
  padding-top: var(--space-xl);
}

.gallery-section-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.gallery-section-text {
  max-width: 640px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-lg);
}

.gallery-item {
  margin: 0;
}

.gallery-item-inner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: #e0d3c2;
  box-shadow: var(--shadow-subtle);
  cursor: pointer;
  transform: translateY(0);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.gallery-item-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(31, 25, 21, 0.82), rgba(31, 25, 21, 0.05));
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: var(--space-md);
  transition: opacity 0.2s ease;
}

.gallery-item-meta {
  color: #fdf7ee;
}

.gallery-item-category {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
}

.gallery-item-title {
  margin-top: 0.25rem;
  font-size: 0.98rem;
  font-weight: 600;
}

.gallery-item-inner:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.gallery-item-inner:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.gallery-section-bottom {
  margin-top: var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.gallery-section-bottom .gallery-section-text {
  flex: 1 1 260px;
  min-width: 0;
}

.gallery-section-bottom .btn {
  flex: 0 0 auto;
}

@media (max-width: 767.98px) {
  .gallery-section-intro {
    flex-direction: column;
    align-items: flex-start;
  }
  .gallery-section-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .gallery-section-bottom .btn {
    width: 100%;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 10, 6, 0.72);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100% - 2.5rem);
  max-height: calc(100vh - 3rem);
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top left, #fdf7ee, #e7d7c3);
  box-shadow: var(--shadow-glass);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.lightbox-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: #000;
  max-height: 70vh;
}

.lightbox-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #000;
}

.lightbox-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-inline: var(--space-xs);
}

.lightbox-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
}

.lightbox-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.lightbox-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  padding-inline: var(--space-xs);
}

.lightbox-nav {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(201, 139, 95, 0.6);
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--color-text-soft);
  box-shadow: var(--shadow-subtle);
  transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

.lightbox-nav:hover {
  background: rgba(201, 139, 95, 0.95);
  color: #fff !important;
  box-shadow: 0 16px 36px rgba(201, 139, 95, 0.6);
  transform: translateY(-1px);
}

.lightbox-close {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(201, 139, 95, 0.5);
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
  transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

.lightbox-close:hover {
  background: rgba(201, 139, 95, 0.95);
  box-shadow: 0 14px 30px rgba(201, 139, 95, 0.5);
  transform: translateY(-1px);
}

.lightbox-close-icon {
  font-size: 1.3rem;
  line-height: 1;
  color: var(--color-text-soft);
}

@media (max-width: 767.98px) {
  .lightbox-dialog {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
    max-width: none;
  }
  .lightbox-media {
    max-height: 70vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
