/* Gallery page — aligned to Figma 126:4959 */

.gallery-page .section {
  background: #f5f3ee;
  padding-top: 48px;
}

.gallery-page .heading-md {
  color: var(--color-primary);
  font-size: 42px;
  line-height: 1.15;
}

.gallery-page .back-link {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 48px;
  gap: 6px;
}

.gallery-page .back-link img {
  width: 16px;
  height: 16px;
}

.gallery-page .gallery-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.gallery-page .gallery-intro .text-muted {
  margin-top: 12px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.gallery-page .tabs {
  gap: 10px;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.gallery-page .tabs button {
  min-width: 80px;
  height: 36px;
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 24px;
  color: var(--color-text-muted);
}

.gallery-page .tabs button.is-active {
  background: rgba(209, 197, 180, 0.2);
  color: var(--color-text-muted);
  font-weight: 400;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px 15px;
}

.gallery-card {
  transition: transform 0.25s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: none;
}

.gallery-card__thumb {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 350 / 213;
  margin-bottom: 6px;
}

.gallery-card__thumb > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.gallery-card__play img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.gallery-card h3 {
  font-family: var(--font-sans);
  font-style: normal;
  transform: none;
  font-size: 16px;
  font-weight: 500;
  line-height: 28px;
  color: var(--color-primary);
  margin-bottom: 0;
  margin-top: 0;
}

.gallery-card p {
  color: #6b7280;
  font-size: 12px;
  line-height: 28px;
}

.gallery-page .pagination {
  gap: 14px;
  margin-top: 56px;
}

.gallery-page .pagination a,
.gallery-page .pagination span {
  width: 36px;
  height: 36px;
  border-radius: 2px;
  font-size: 14px;
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.8);
}

.gallery-page .pagination .is-active {
  background: var(--color-primary);
  color: #fff;
}

.gallery-page .pagination .page-nav {
  width: 40px;
  height: 40px;
  background: transparent;
  padding: 0;
}

.gallery-page .pagination .page-nav img {
  width: 40px;
  height: 40px;
  display: block;
}

.gallery-page .pagination .ellipsis {
  background: transparent;
  color: var(--color-primary);
}

@media (max-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 16px;
  }
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-page .heading-md {
    font-size: 32px;
  }
}

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