:root {
  --gallery-pink: #dc1767;
  --gallery-deep: #72113a;
  --gallery-ink: #26151c;
  --gallery-cream: #fbf8f2;
  --gallery-line: #eadde1;
}

body.photo-gallery-page,
.photo-gallery-page button { font-family: "mont-r", Arial, sans-serif; }

.photo-gallery-page { color: var(--gallery-ink); background: var(--gallery-cream); }

.photo-gallery-page .main-header,
.photo-gallery-page .main-header a,
.photo-gallery-page .main-header li,
.photo-gallery-page .main-header span:not(.icon):not([class^="fa"]):not([class*=" fa"]),
.photo-gallery-page .main-header button { font-family: var(--font-family-jost) !important; }

.photo-gallery-page .main-header .btn-style-one .text-one {
  color: var(--white-color) !important;
  opacity: 1;
  visibility: visible;
}

.gallery-hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  margin-top: 85px;
  padding: 76px 20px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(47, 3, 21, .9), rgba(105, 8, 48, .18)),
    url(../images/main-slider/back3new1.png) center / cover no-repeat;
}

.gallery-hero::before {
  position: absolute;
  top: -120px;
  right: -90px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 52px rgba(255,255,255,.04), 0 0 0 104px rgba(255,255,255,.03);
}

.gallery-hero .auto-container { position: relative; z-index: 1; width: 100%; max-width: 1326px; box-sizing: border-box; }

.gallery-eyebrow,
.gallery-kicker {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #ffd0e2;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.gallery-eyebrow { margin-bottom: 18px; }
.gallery-eyebrow::before,
.gallery-kicker::before { width: 34px; height: 2px; content: ""; background: currentColor; }

.gallery-hero h1 {
  max-width: 900px;
  margin: 0 0 20px;
  color: #fff;
  font-family: "mont-m", Arial Black, sans-serif;
  font-size: clamp(48px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -.045em;
}

.gallery-hero h1 span { color: #f06a9e; }
.gallery-hero p { max-width: 720px; margin: 0; color: rgba(255,255,255,.9); font-size: 17px; line-height: 1.75; }

.gallery-intro { padding: 95px 0 58px; }

.gallery-intro-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 80px;
  align-items: end;
}

.gallery-kicker { color: var(--gallery-pink); }

.gallery-intro h2 {
  max-width: 780px;
  margin: 16px 0 0;
  color: var(--gallery-ink);
  font-family: "mont-m", Arial Black, sans-serif;
  font-size: clamp(40px, 5vw, 65px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.gallery-intro h2 span { color: var(--gallery-pink); }

.gallery-intro-copy { padding-left: 28px; border-left: 1px solid #d9c5cc; }
.gallery-intro-copy { min-width: 0; max-width: 100%; }
.gallery-intro-copy p { margin: 0; color: #705d65; font-size: 15px; line-height: 1.8; }

.gallery-stats { display: flex; gap: 30px; margin-top: 22px; }
.gallery-stat strong { display: block; color: var(--gallery-deep); font-family: "mont-m", Arial Black, sans-serif; font-size: 30px; line-height: 1; }
.gallery-stat span { color: #977b86; font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }

.gallery-showcase { padding: 20px 0 110px; }

.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 38px;
  padding: 18px 20px;
  border: 1px solid var(--gallery-line);
  border-radius: 14px;
  background: rgba(255,255,255,.72);
}

.gallery-toolbar-label { display: flex; align-items: center; gap: 10px; color: var(--gallery-deep); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.gallery-toolbar-label i { color: var(--gallery-pink); font-size: 15px; }
.gallery-filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

.gallery-filter {
  padding: 11px 18px 9px;
  border: 1px solid #e5d4da;
  border-radius: 999px;
  color: #7b606a;
  background: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: .25s ease;
}

.gallery-filter:hover,
.gallery-filter:focus-visible { color: var(--gallery-pink); border-color: var(--gallery-pink); outline: none; }
.gallery-filter.active { color: #fff; border-color: var(--gallery-pink); background: var(--gallery-pink); box-shadow: 0 8px 22px rgba(220,23,103,.2); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: 43px;
  gap: 18px;
}

.gallery-card {
  position: relative;
  grid-column: span 4;
  grid-row: span 8;
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #3c1224;
  box-shadow: 0 16px 42px rgba(62,20,37,.1);
  animation: galleryReveal .48s both;
}

.gallery-card.wide { grid-column: span 8; }
.gallery-card.tall { grid-row: span 11; }
.gallery-card.featured { grid-column: span 8; grid-row: span 11; }
.gallery-card.is-hidden { display: none; }

@keyframes galleryReveal {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.gallery-card > a { position: absolute; inset: 0; display: block; overflow: hidden; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.gallery-card:hover img { transform: scale(1.055); }

.gallery-card > a::after {
  position: absolute;
  inset: 32% 0 0;
  content: "";
  background: linear-gradient(transparent, rgba(25,3,12,.88));
}

.gallery-index {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  color: #fff;
  background: rgba(30,3,15,.2);
  backdrop-filter: blur(6px);
  font-size: 10px;
  font-weight: 800;
}

.gallery-card-content { position: absolute; z-index: 2; right: 20px; bottom: 19px; left: 20px; color: #fff; }
.gallery-card-content span { display: block; margin-bottom: 7px; color: #ffc1d8; font-size: 9px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.gallery-card-content h3 { margin: 0; color: #fff; font-family: "mont-m", Arial Black, sans-serif; font-size: 20px; line-height: 1.15; }

.gallery-view {
  position: absolute;
  z-index: 3;
  right: 18px;
  top: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--gallery-deep);
  background: #fff;
  transform: translateY(-6px);
  opacity: 0;
  transition: .3s ease;
}

.gallery-card:hover .gallery-view,
.gallery-card > a:focus-visible .gallery-view { transform: translateY(0); opacity: 1; }

.gallery-empty { display: none; padding: 55px 20px; text-align: center; color: #806873; }
.gallery-empty.visible { display: block; }

.gallery-quote { padding: 76px 0; color: #fff; background: var(--gallery-deep); }
.gallery-quote .auto-container { display: flex; align-items: center; justify-content: space-between; gap: 45px; }
.gallery-quote blockquote { max-width: 850px; margin: 0; color: #fff; font-family: "mont-m", Arial Black, sans-serif; font-size: clamp(31px, 4vw, 52px); line-height: 1.15; letter-spacing: -.035em; }
.gallery-quote blockquote span { color: #ffc1d8; }
.gallery-quote-mark { flex: 0 0 auto; color: rgba(255,255,255,.16); font-family: Georgia, serif; font-size: 150px; line-height: .5; }

@media (max-width: 991px) {
  .gallery-hero { min-height: 460px; margin-top: 76px; }
  .gallery-intro-inner { grid-template-columns: 1fr; gap: 30px; }
  .gallery-intro-copy { max-width: 680px; }
  .gallery-toolbar { align-items: flex-start; flex-direction: column; }
  .gallery-filters { justify-content: flex-start; }
  .gallery-card { grid-column: span 6; }
  .gallery-card.wide,
  .gallery-card.featured { grid-column: span 12; }
}

@media (max-width: 767px) {
  .gallery-hero { min-height: 410px; margin-top: 0; padding: 60px 5px; }
  .gallery-hero h1 { max-width: 100%; font-size: 43px; white-space: normal; }
  .gallery-hero h1 span { display: block; }
  .gallery-hero p { max-width: 100%; font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
  .gallery-intro { padding: 66px 0 42px; }
  .gallery-intro h2 { font-size: 41px; }
  .gallery-intro-copy { width: auto; padding-left: 18px; box-sizing: border-box; overflow-wrap: anywhere; }
  .gallery-showcase { padding-bottom: 72px; }
  .gallery-toolbar { margin-bottom: 24px; padding: 15px; }
  .gallery-filters { gap: 6px; }
  .gallery-filter { padding: 10px 13px 8px; font-size: 9px; }
  .gallery-grid { grid-auto-rows: 36px; gap: 10px; }
  .gallery-card,
  .gallery-card.tall { grid-column: span 6; grid-row: span 8; border-radius: 11px; }
  .gallery-card.wide,
  .gallery-card.featured { grid-column: span 12; grid-row: span 8; }
  .gallery-card-content { right: 12px; bottom: 12px; left: 12px; }
  .gallery-card-content h3 { font-size: 14px; }
  .gallery-card-content span { margin-bottom: 4px; font-size: 7px; }
  .gallery-index { top: 10px; left: 10px; width: 31px; height: 31px; font-size: 8px; }
  .gallery-view { top: 10px; right: 10px; width: 34px; height: 34px; opacity: 1; transform: none; }
  .gallery-quote { padding: 58px 0; }
  .gallery-quote .auto-container { align-items: flex-start; flex-direction: column; }
  .gallery-quote-mark { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-card { animation: none; }
  .gallery-card img,
  .gallery-view,
  .gallery-filter { transition: none; }
}
