:root {
  --rose-50: #fff7f9;
  --rose-100: #fdebf0;
  --rose-200: #f9d4de;
  --rose-300: #efafc1;
  --rose-500: #d85f83;
  --rose-700: #853a55;
  --ink: #33252a;
  --muted: #78666c;
  --white: #ffffff;
  --line: rgba(87, 50, 63, 0.13);
  --shadow: 0 18px 48px rgba(94, 49, 65, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--rose-50);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.container {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.hero {
  min-height: 650px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.75), transparent 24%),
    linear-gradient(135deg, #fbdde5 0%, #f7bdce 52%, #ef9fb7 100%);
}

.nav {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.brand {
  text-decoration: none;
  font: 700 1.55rem "Playfair Display", serif;
  letter-spacing: -0.04em;
}

.brand span,
.eyebrow,
.section-kicker,
.card-tag,
.modal-kicker {
  color: var(--rose-700);
}

.nav-link {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-link span,
.nav-arrow {
  display: inline-block;
  margin-left: 8px;
}

.nav-arrow {
  animation: bounce-y 1.8s ease-in-out infinite;
}

.hero-content {
  min-height: 495px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.7fr);
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
  padding-block: 45px 85px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 4px;
  font: 600 clamp(1.3rem, 2.5vw, 2rem) "Playfair Display", serif;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font: 700 clamp(2.9rem, 6vw, 5.1rem)/0.98 "Playfair Display", serif;
  letter-spacing: -0.05em;
}

.intro {
  max-width: 680px;
  color: #5f4c53;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 34px;
}

.primary-button {
  border: 0;
  border-radius: 999px;
  padding: 15px 24px;
  color: #1f4a5c;
  background: linear-gradient(135deg, #bfe6f5, #8fcfe8);
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 9px 24px rgba(48, 118, 148, 0.26);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-button span {
  display: inline-block;
  margin-right: 8px;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 30px rgba(48, 118, 148, 0.34);
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  margin-top: 28px;
}

.hero-contact a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: color 180ms ease;
}

.hero-contact a:hover {
  color: var(--rose-700);
}

.hero-contact .contact-label {
  color: var(--rose-700);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portrait-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.portrait {
  width: min(100%, 390px);
  aspect-ratio: 1;
  padding: 10px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: 0 25px 55px rgba(105, 52, 71, 0.18);
  animation: float-soft 5.5s ease-in-out infinite;
}

.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-shape-one {
  width: 250px;
  height: 250px;
  right: -70px;
  bottom: -110px;
  border: 42px solid rgba(255, 255, 255, 0.3);
  animation: drift-a 10s ease-in-out infinite;
}

.hero-shape-two {
  width: 100px;
  height: 100px;
  left: 46%;
  top: 30px;
  background: rgba(255, 255, 255, 0.14);
  animation: drift-b 8s ease-in-out infinite;
}

.contact-rail {
  position: fixed;
  z-index: 5;
  right: 20px;
  top: 50%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateY(-50%);
}

.contact-rail a {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rose-300);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 8px 25px rgba(87, 50, 63, 0.12);
  transition: transform 180ms ease, background 180ms ease;
  animation: rail-pulse 3.2s ease-in-out infinite;
}

.contact-rail a:nth-child(2) {
  animation-delay: 0.4s;
}

.contact-rail a:hover {
  transform: translateX(-3px);
  background: var(--rose-100);
}

.contact-rail svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.highlights {
  padding-block: 110px 125px;
}

.section-heading {
  max-width: 650px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-kicker,
.modal-kicker {
  margin-bottom: 10px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading .section-kicker {
  font-size: 1.02rem;
  letter-spacing: 0.14em;
}

.section-heading h2,
.modal-panel h2 {
  margin-bottom: 14px;
  font: 700 clamp(2.4rem, 5vw, 4.2rem)/1.06 "Playfair Display", serif;
  letter-spacing: -0.04em;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
}

.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 45px;
}

.tab {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.tab:hover,
.tab.active {
  border-color: var(--ink);
  color: var(--white);
  background: var(--ink);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.portfolio-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  cursor: pointer;
  box-shadow: 0 9px 30px rgba(104, 66, 80, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease, opacity 180ms ease;
}

.portfolio-card:hover,
.portfolio-card:focus-visible {
  outline: none;
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.portfolio-card.hidden {
  display: none;
}

.card-art {
  height: 220px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--rose-100);
}

.card-art-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.card-football .card-art-photo {
  background: #1f2a24;
}

.card-football .card-art-photo .art-label {
  color: rgba(255, 247, 249, 0.92);
  background: rgba(33, 24, 28, 0.55);
}

.card-resume .card-art {
  background: linear-gradient(145deg, #cfeaf6, #f4fbfe);
}

.card-resume .art-icon {
  color: #1f4a5c;
}

.card-research .card-art {
  background:
    radial-gradient(circle at 65% 35%, rgba(255, 255, 255, 0.8) 0 6px, transparent 7px),
    radial-gradient(circle at 41% 66%, rgba(255, 255, 255, 0.7) 0 5px, transparent 6px),
    linear-gradient(145deg, #e6b6c6, #9f5871);
}

.card-outreach .card-art {
  background: linear-gradient(145deg, #f7d5b8, #f4a9bc);
}

.card-football .card-art {
  background:
    linear-gradient(rgba(49, 70, 61, 0.1), rgba(49, 70, 61, 0.15)),
    repeating-linear-gradient(90deg, #b9d2b2 0 34px, #c7ddbf 34px 68px);
}

.card-nutrition .card-art,
.card-pursuits .card-art {
  background: linear-gradient(145deg, #dae8c9, #f4d7d4);
}

.card-baking .card-art {
  background: linear-gradient(145deg, #ecd2b6, #fff4ea);
}

.art-icon {
  width: 100px;
  height: 125px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(71, 43, 52, 0.12);
  border-radius: 8px;
  color: var(--rose-700);
  background: rgba(255, 255, 255, 0.72);
  font: 700 1.6rem "Playfair Display", serif;
  box-shadow: 11px 13px 0 rgba(255, 255, 255, 0.32);
  transform: rotate(-4deg);
}

.art-label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  padding: 6px 9px;
  border-radius: 5px;
  color: rgba(51, 37, 42, 0.75);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(5px);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.molecule {
  position: absolute;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
}

.molecule::before,
.molecule::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--white);
}

.molecule::before {
  left: -5px;
  top: 12px;
}

.molecule::after {
  right: 5px;
  bottom: -4px;
}

.molecule-a {
  left: 36%;
  top: 27%;
}

.molecule-b {
  left: 49%;
  top: 42%;
  transform: scale(0.72);
}

.football-mark {
  font-size: 5rem;
  filter: grayscale(1) contrast(0.85);
}

.card-body {
  min-height: 135px;
  display: grid;
  grid-template-columns: 35px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 22px 20px;
}

.card-number {
  color: #b7a5ab;
  font-size: 0.72rem;
}

.card-tag {
  margin-bottom: 5px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.card-body h3 {
  margin: 0;
  font: 600 1.24rem/1.28 "Playfair Display", serif;
}

.card-arrow {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--rose-100);
  font-size: 1.1rem;
}

.footer {
  background: var(--rose-200);
}

.footer-inner {
  min-height: 95px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--rose-700);
  font-size: 0.82rem;
}

.footer p {
  margin: 0;
}

.footer a {
  text-underline-offset: 4px;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(40, 27, 32, 0.5);
  backdrop-filter: blur(4px);
}

.modal-panel {
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  position: relative;
  z-index: 1;
  overflow-y: auto;
  padding: clamp(30px, 6vw, 58px);
  border-radius: 24px;
  background: var(--rose-50);
  box-shadow: 0 30px 80px rgba(38, 21, 27, 0.3);
  animation: modal-in 220ms ease both;
}

.modal-panel:has(.modal-pdf-wrap) {
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
}

.modal-panel h2 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 7vw, 4rem);
}

.modal-panel > p:not(.modal-kicker) {
  color: var(--muted);
  line-height: 1.7;
}

.modal-panel > p:empty {
  display: none;
}

.modal-close {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 20px;
  right: 20px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.modal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 18px;
}

.modal-tab {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--white);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
}

.modal-tab.active {
  border-color: var(--rose-700);
  color: var(--white);
  background: var(--rose-700);
}

.modal-content {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  line-height: 1.65;
}

.modal-content:empty {
  display: none;
}

.modal-content p {
  margin: 0;
  color: var(--muted);
}

.modal-content.modal-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
}

.modal-content.modal-card-grid-vertical {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
}

.modal-content.modal-card-grid-vertical .modal-subcard-vertical {
  width: min(100%, 280px);
  flex: 0 1 280px;
}

.modal-subcard {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(104, 66, 80, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.modal-subcard-vertical {
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  align-items: start;
  min-height: 260px;
  padding: 20px 18px;
  gap: 16px;
}

.modal-subcard:hover,
.modal-subcard:focus-visible {
  outline: none;
  transform: translateY(-3px);
  border-color: var(--rose-300);
  box-shadow: var(--shadow);
}

.modal-subcard-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #dae8c9, #f4d7d4);
  font-size: 1.25rem;
}

.modal-subcard-vertical .modal-subcard-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  font-size: 1.5rem;
}

.modal-subcard-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.modal-subcard-vertical .modal-subcard-copy {
  gap: 8px;
}

.modal-subcard-label {
  color: var(--rose-700);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.modal-subcard-title {
  font: 600 1rem/1.25 "Playfair Display", serif;
}

.modal-subcard-vertical .modal-subcard-title {
  font-size: 1.15rem;
  line-height: 1.35;
}

.modal-subcard-subtitle {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.5;
}

.modal-subcard-arrow {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--rose-100);
  font-size: 0.95rem;
}

.modal-subcard-vertical .modal-subcard-arrow {
  justify-self: end;
  align-self: end;
}

a.modal-subcard {
  text-decoration: none;
  color: inherit;
}

.modal-logo-card {
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.modal-logo-wrap {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  background: #efe8f4;
  overflow: hidden;
}

.modal-logo-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.modal-logo-card .modal-subcard-copy {
  padding: 0 18px;
}

.modal-logo-card .modal-subcard-arrow {
  margin: 0 18px 18px;
}

.modal-content.modal-pdf-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
}

.modal-pdf-actions {
  display: flex;
  justify-content: flex-end;
}

.modal-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--rose-100);
  color: var(--rose-700);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.modal-pdf-link:hover,
.modal-pdf-link:focus-visible {
  background: var(--rose-300);
  color: var(--ink);
  outline: none;
}

.modal-pdf {
  width: 100%;
  height: min(62vh, 560px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

@media (max-width: 680px) {
  .modal-content.modal-card-grid {
    grid-template-columns: 1fr;
  }

  .modal-pdf {
    height: 52vh;
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.98);
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-soft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes bounce-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

@keyframes drift-a {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(-18px, -12px) rotate(8deg);
  }
}

@keyframes drift-b {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(16px, 10px) scale(1.08);
  }
}

@keyframes rail-pulse {
  0%,
  100% {
    box-shadow: 0 8px 25px rgba(87, 50, 63, 0.12);
  }
  50% {
    box-shadow: 0 10px 28px rgba(216, 95, 131, 0.22);
  }
}

@keyframes rail-in {
  from {
    opacity: 0;
    transform: translate(18px, -50%);
  }
  to {
    opacity: 1;
    transform: translate(0, -50%);
  }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-hero {
  opacity: 0;
  animation: hero-rise 0.75s ease both;
  animation-delay: var(--delay, 0s);
}

.reveal-rail {
  animation: rail-in 0.7s ease both;
  animation-delay: 0.55s;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-card.reveal-on-scroll.is-visible:hover,
.portfolio-card.reveal-on-scroll.is-visible:focus-visible {
  transform: translateY(-7px);
}

.modal-subcard {
  animation: hero-rise 0.45s ease both;
}

.modal-subcard:nth-child(1) { animation-delay: 0.05s; }
.modal-subcard:nth-child(2) { animation-delay: 0.1s; }
.modal-subcard:nth-child(3) { animation-delay: 0.15s; }
.modal-subcard:nth-child(4) { animation-delay: 0.2s; }

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr 290px;
    gap: 30px;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 32px, 1160px);
  }

  .hero {
    min-height: auto;
  }

  .nav {
    height: 75px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-block: 25px 70px;
    text-align: center;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  h1 {
    margin-bottom: 20px;
  }

  .portrait-wrap {
    grid-row: 1;
  }

  .portrait {
    width: 230px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 18px;
  }

  .hero-contact {
    justify-content: center;
    text-align: center;
  }

  .contact-rail {
    right: 12px;
    top: auto;
    bottom: 14px;
    flex-direction: row;
    transform: none;
  }

  .contact-rail a:hover {
    transform: translateY(-3px);
  }

  .highlights {
    padding-block: 80px 90px;
  }

  .tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .tab {
    flex: 0 0 auto;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .card-art {
    height: 205px;
  }

  .footer-inner {
    padding-block: 25px 85px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-hero,
  .reveal-rail,
  .reveal-on-scroll,
  .modal-subcard {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* Football / BMC gallery cards */
.modal-content.modal-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.modal-content.modal-photo-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.modal-photo-tile {
  border-radius: 14px;
}

.modal-photo-tile .modal-gallery-media {
  aspect-ratio: 1 / 1;
}

.modal-gallery-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  color: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(104, 66, 80, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.modal-gallery-card:hover,
.modal-gallery-card:focus-visible {
  outline: none;
  transform: translateY(-3px);
  border-color: var(--rose-300);
  box-shadow: var(--shadow);
}

.modal-gallery-card.is-empty {
  cursor: default;
  opacity: 0.78;
}

.modal-gallery-card.is-empty:hover,
.modal-gallery-card.is-empty:focus-visible {
  transform: none;
  border-color: var(--line);
  box-shadow: 0 8px 22px rgba(104, 66, 80, 0.06);
}

.modal-gallery-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(145deg, #fdebf0, #f4d7d4);
}

.modal-gallery-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 280ms ease;
}

.modal-gallery-media.has-position img {
  object-position: var(--cover-position, center top);
}

.modal-gallery-media.is-contain {
  background: #000;
}

.modal-gallery-media.is-contain img {
  object-fit: contain;
  object-position: center;
}

.modal-gallery-card:hover:not(.is-empty) .modal-gallery-media img {
  transform: scale(1.04);
}

.modal-gallery-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 2rem;
}

.modal-gallery-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 14px 16px;
}

.modal-gallery-meta {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

/* Lightbox */
.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  z-index: 60;
  inset: 0;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(51, 37, 42, 0.9);
  backdrop-filter: blur(6px);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(255, 247, 249, 0.22);
  border-radius: 50%;
  color: #fff7f9;
  background: rgba(255, 247, 249, 0.12);
  cursor: pointer;
  transition: background 160ms ease, opacity 160ms ease;
}

.lightbox-close:hover,
.lightbox-nav:hover:not(:disabled) {
  background: rgba(255, 247, 249, 0.22);
}

.lightbox-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.lightbox-close {
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  font-size: 1.6rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  width: 52px;
  height: 52px;
  transform: translateY(-50%);
  font-size: 2rem;
  line-height: 1;
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.lightbox-stage {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 80px 56px;
  box-sizing: border-box;
  pointer-events: none;
}

.lightbox-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
  pointer-events: auto;
}

.lightbox-frame img {
  display: block;
  max-width: min(86vw, 980px);
  max-height: calc(100vh - 140px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  background: #2a1c21;
}

.lightbox-counter {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 3;
  transform: translateX(-50%);
  margin: 0;
  color: #fff7f9;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

@media (max-width: 720px) {
  .lightbox-stage {
    padding: 64px 16px 48px;
  }

  .lightbox-frame img {
    max-width: 92vw;
    max-height: calc(100vh - 130px);
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-nav {
    width: 42px;
    height: 42px;
    font-size: 1.6rem;
  }
}
