.home-gallery-preview {
  margin-top: 58px;
  padding-top: 48px;
  border-top: 1px solid #CBA57488;
}
.home-gallery-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .75fr);
  gap: 54px;
  align-items: end;
}
.home-gallery-heading h3 {
  margin-top: 12px;
  color: #FFF2E0;
  font-size: clamp(2rem, 3.5vw, 2.7rem);
}
.home-gallery-heading > p {
  color: #F4E5D6;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.02em;
  line-height: 1.75;
}
.home-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
  margin-top: 35px;
}
.home-gallery-card {
  position: relative;
  display: block;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid #CBA574;
  background: #22182A;
  color: #FFF2E0;
  text-decoration: none;
}
.home-gallery-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #17101DEB 0, #17101D33 42%, transparent 70%);
  pointer-events: none;
}
.home-gallery-card img {
  width: 100%;
  height: 390px;
  object-fit: cover;
  transition: transform .35s ease, filter .35s ease;
}
.home-gallery-card-square img { object-position: center; }
.home-gallery-card span {
  position: absolute;
  z-index: 1;
  left: 22px;
  right: 22px;
  bottom: 20px;
  font: 1.15em/1.3 Georgia, 'Times New Roman', serif;
}
.home-gallery-card:hover img,
.home-gallery-card:focus-visible img {
  transform: scale(1.035);
  filter: brightness(1.08);
}
.home-gallery-action {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 30px;
}
.home-gallery-action .button {
  margin-top: 0;
  border-color: #D0AD7D;
  background: #7D587530;
  color: #FFF2E0;
  font-size: max(18px, .95em);
}
.home-gallery-action .button:hover { background: #7D5875; }
.home-gallery-action > span {
  color: #E9D8C6;
  font-size: .84em;
}
@media (max-width: 850px) {
  .home-gallery-heading { grid-template-columns: 1fr; gap: 20px; }
  .home-gallery-heading > p { max-width: 38em; }
  .home-gallery-grid { gap: 18px; }
  .home-gallery-card { min-height: 300px; }
  .home-gallery-card img { height: 330px; }
  .home-gallery-card span { left: 17px; right: 17px; bottom: 16px; font-size: 1em; }
}
@media (max-width: 620px) {
  .home-gallery-preview { margin-top: 42px; padding-top: 35px; }
  .home-gallery-heading h3 { font-size: 2.1rem; }
  .home-gallery-heading > p { font-size: 1em; }
  .home-gallery-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }
  .home-gallery-card { min-height: 330px; }
  .home-gallery-card img { height: 380px; }
  .home-gallery-card span { font-size: 1.2em; }
  .home-gallery-action { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .home-gallery-card img { transition: none; }
}
@media print {
  .home-gallery-heading h3, .home-gallery-heading > p, .home-gallery-card, .home-gallery-action .button, .home-gallery-action > span { color: #222; }
}
