body.gallery-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.gallery-page .main-content {
  flex: 1;
  min-height: 0;
  animation: galleryPageBlurIn 0.56s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.08s both;
}

.gallery-hero {
  text-align: center;
  padding: 120px 20px 86px;
}

.gallery-hero h1 {
  font-size: 3rem;
  margin-bottom: 1.2rem;
  color: var(--heading-color);
  line-height: 1.2;
  letter-spacing: -0.04em;
  transition: color var(--theme-transition);
}

.gallery-hero p {
  font-size: 1.15rem;
  color: var(--content-color);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.68;
  transition: color var(--theme-transition);
}

.gallery-year-section {
  margin-bottom: 28px;
}

.gallery-year-section h2 {
  margin-top: 0;
}

.gallery-carousel {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  margin-top: 28px;
  padding: 4px 0 8px;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.gallery-card {
  flex: 0 0 240px;
  width: 240px;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  scroll-snap-align: start;
  transition: transform 0.26s ease;
}

.gallery-card--wide {
  flex-basis: 320px;
  width: 320px;
}

.gallery-card__frame {
  overflow: hidden;
  border-radius: 18px;
  background: transparent;
  inline-size: 100%;
  block-size: 280px;
}

.gallery-card__frame .image-info,
.gallery-card__frame .image-info__img {
  width: 100%;
  height: 100%;
}

.gallery-card__frame .image-info {
  margin: 0;
  border-radius: inherit;
  background: transparent;
}

.gallery-card__frame .image-info__img {
  margin: 0;
  object-fit: cover;
}

.gallery-card__frame>img.component-image {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: inherit;
  object-fit: cover;
  background: transparent;
}

.gallery-card__caption {
  display: none;
  padding: 0;
  color: var(--heading-color);
  font-size: 15px;
  font-weight: 530;
  line-height: 1.45;
  transition: color var(--theme-transition);
}

.gallery-empty {
  margin-top: 28px;
  color: var(--nav-item-color);
  font-size: 15px;
  line-height: 1.75;
  transition: color var(--theme-transition);
}

@keyframes galleryPageBlurIn {
  from {
    opacity: 0;
    filter: blur(14px);
    transform: translateY(10px) scale(0.995);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 768px) {
  .gallery-hero {
    padding: 108px 20px 62px;
  }

  .gallery-hero h1 {
    font-size: 2.3rem;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
  }

  .gallery-hero p {
    font-size: 1.01rem;
    line-height: 1.6;
  }

  .gallery-carousel {
    gap: 12px;
  }

  .gallery-card {
    flex-basis: 180px;
    width: 180px;
  }

  .gallery-card--wide {
    flex-basis: 240px;
    width: 240px;
  }

  .gallery-card__frame {
    block-size: 220px;
  }
}