.gallery-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background: var(--paper);
}

.gallery-header { background: #151515; }
.gallery-header .nav { height: 112px; }
.gallery-header .nav-links { margin-left: auto; margin-right: 24px; }
.gallery-header .nav-links a[aria-current="page"] { color: var(--gold); }

.gallery {
  flex: 1;
  padding-top: 92px;
  padding-bottom: 120px;
}

.gallery-heading {
  display: grid;
  grid-template-columns: 1fr minmax(260px, .55fr);
  gap: 60px;
  align-items: end;
  margin-bottom: 58px;
}

.gallery-heading h1 { margin-top: 0; color: #151515; }
.gallery-heading p { margin: 0; color: #5d5d5d; font-size: 16px; line-height: 1.65; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.gallery-card { min-width: 0; margin: 0; }

.gallery-card__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(21, 21, 21, .16);
  background: #171717;
}

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

.gallery-card__placeholder {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(202, 160, 32, .3) 48.2% 48.8%, transparent 49% 100%),
    linear-gradient(35deg, #101010, #292719);
}

.gallery-card__placeholder::before {
  position: absolute;
  top: 18px;
  left: 19px;
  color: var(--gold);
  content: attr(data-placeholder);
  font-family: var(--font-heading, Arial, sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
}

.gallery-card__placeholder span {
  color: rgba(255, 255, 255, .23);
  font-family: var(--font-heading, Arial, sans-serif);
  font-size: clamp(19px, 2.2vw, 30px);
  font-weight: 700;
  letter-spacing: .13em;
  transform: rotate(-22deg);
}

.gallery-card figcaption {
  overflow: hidden;
  margin-top: 12px;
  color: #4f4f4f;
  font-size: 14px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .gallery-header .nav { height: 78px; }
  .gallery-header .nav-links { display: none; }
  .gallery { padding-top: 62px; padding-bottom: 75px; }
  .gallery-heading { grid-template-columns: 1fr; gap: 24px; margin-bottom: 38px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 1100px) {
  .gallery-header { min-height: 112px; }
}

@media (max-width: 760px) {
  .gallery-header { min-height: 78px; }
}
