/* The complete artwork stays centered; the timer sits in its extended frame. */
.cover-section { padding-top: 1px; }
.cover-photo {
  display: grid;
  justify-items: center;
  margin: 24px 24px 0;
  padding: 18px 18px 108px;
  border: 1px solid rgba(225, 207, 221, .32);
  background: linear-gradient(145deg, rgba(43, 20, 33, .7), rgba(12, 7, 13, .9));
  box-shadow: 0 15px 45px #0005;
}
.cover-photo:after { inset: 7px; border-color: #e1cfdd1c; }
.cover-photo > img {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  aspect-ratio: 1122 / 1402;
  object-fit: contain;
  object-position: center;
  margin-inline: auto;
}
.cover-countdown {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(350px, calc(100% - 48px));
  padding: 10px 16px 9px;
  text-align: center;
  border: 1px solid #e1cfdd50;
  background: linear-gradient(120deg, #261723ed, #0f0911f2 50%, #291823ed);
  box-shadow: 0 4px 22px #0005;
}
.cover-countdown-label { display: block; font: 500 7px/1.5 var(--sans); letter-spacing: .2em; color: #e6d6e0; }
.cover-countdown-digits { display: flex; align-items: flex-start; justify-content: center; gap: 13px; margin-top: 6px; }
.cover-countdown-digits > div { flex: 1; min-width: 0; }
.cover-countdown-digits b { display: block; font: 400 33px/1 var(--serif); font-variant-numeric: tabular-nums; color: #faf0f5; }
.cover-countdown-digits span { display: block; margin-top: 5px; font: 500 6px/1.3 var(--sans); letter-spacing: .12em; color: #cbbbc6; }
.cover-countdown-digits > i { padding-top: 2px; font: 400 23px/1 var(--serif); color: #bea5b5; }
.cover-caption { padding-top: 28px; }

.dresscode-section { padding-top: 143px; border-top: 1px solid var(--line); background: linear-gradient(150deg, #170d15b8, #100b1299); }
.dresscode-icon { position: absolute; left: 50%; top: 17px; transform: translateX(-50%); width: 103px; height: 106px; object-fit: contain; }
.dresscode-options { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; max-width: 440px; margin: 34px auto 0; }
.dresscode-card { display: flex; flex-direction: column; align-items: center; padding: 29px 15px 24px; border: 1px solid #e5dae342; background: linear-gradient(155deg, #3327334d, #0a080dc7); min-width: 0; }
.dresscode-silhouette { width: 67px; height: 88px; margin-bottom: 20px; stroke-width: 1.25; stroke-linejoin: round; }
.dresscode-men .dresscode-silhouette { fill: #121017; stroke: #bdb7c6; filter: drop-shadow(0 5px 9px #0009); }
.dresscode-men .dresscode-detail { fill: none; stroke: #a19ba8; stroke-width: 1; }
.dresscode-men .dresscode-shirt { fill: #d4d0d9; stroke: #bdb7c6; }
.dresscode-women .dresscode-silhouette { fill: #eee9e9; stroke: #fff8fb; filter: drop-shadow(0 5px 11px #eed7e31a); }
.dresscode-women .dresscode-detail { fill: none; stroke: #a99caa; stroke-width: 1; }
.dresscode-person { font: 500 8px/1.5 var(--sans); letter-spacing: .2em; color: #dbd2db; }
.dresscode-colors { display: flex; align-items: center; justify-content: center; min-height: 64px; margin-top: 8px; font: 400 27px/1.1 var(--serif); color: #f4edf3; }
.dresscode-swatch { display: block; width: 15px; height: 15px; border-radius: 50%; margin-top: 18px; border: 1px solid #d9d4dd88; }
.swatch-black { background: #0b090f; box-shadow: inset 2px 2px 3px #ffffff13; }
.dresscode-light-swatches { display: flex; gap: 6px; margin-top: 18px; }
.dresscode-light-swatches > i { display: block; width: 15px; height: 15px; border-radius: 50%; border: 1px solid #f3eaf277; background: #fff; }
.dresscode-light-swatches > i:nth-child(2) { background: #ebe4d6; }
.dresscode-light-swatches > i:nth-child(3) { background: #ddd5e3; }

/* Lupita & Karim's five-photo perspective deck, sized to Perla's column. */
.gallery-section { container-type: inline-size; padding: 40px 0; background: #140c17; }
.gallery-section .gallery-bunting { display: none; }
.gallery-film { position: absolute; z-index: -1; inset: 0; overflow: hidden; background: #1b101d url('assets/video/portada-2.jpg') center / cover; }
.gallery-film > video { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.gallery-film > div { position: absolute; inset: 0; background: linear-gradient(180deg, #130a16bd, #170b1688 45%, #140b18db); }
.gallery-section > h2 { padding-inline: 25px; margin: 0; font: 400 55px/1.1 var(--serif); }
.gallery-subtitle { margin-top: 7px; font: 500 9px/1.7 var(--sans); letter-spacing: .25em; color: #e3d3e7; }
.gallery-carousel { --photo-width: clamp(138px, 44.5vw, 282px); --photo-height: calc(var(--photo-width) * 1.5); position: relative; width: 100%; height: calc(var(--photo-height) + 44px); margin-top: 8px; padding: 0; perspective: 1000px; perspective-origin: 50% 50%; touch-action: pan-y; user-select: none; isolation: isolate; }
@supports (width: 1cqw) { .gallery-carousel { --photo-width: clamp(138px, 44.5cqw, 282px); } }
.gallery-carousel .gallery-item { --x: 0px; --z: 0px; --turn: 0deg; --scale: 1; position: absolute; left: 50%; top: 50%; width: var(--photo-width); height: var(--photo-height); max-width: none; margin: 0; padding: 5px; border: 1px solid #e4d1e573; border-radius: 0; overflow: hidden; background: linear-gradient(140deg, #211624ed, #0a0711f2); box-shadow: 0 10px 24px #0007; transform: translate3d(calc(-50% + var(--x)), -50%, var(--z)) rotateY(var(--turn)) scale(var(--scale)); filter: grayscale(0) brightness(1); opacity: 1; visibility: visible; z-index: 10; cursor: zoom-in; backface-visibility: hidden; transition: transform 1.1s cubic-bezier(.16,1,.3,1), filter 1.3s cubic-bezier(.22,1,.36,1) .08s, opacity 1.1s cubic-bezier(.16,1,.3,1), visibility 0s; }
.gallery-carousel .gallery-item[data-position="previous"], .gallery-carousel .gallery-item[data-position="next"] { --z: calc(var(--photo-width) * -.25); --scale: .82; opacity: .85; filter: grayscale(1) brightness(.9); z-index: 9; cursor: pointer; }
.gallery-carousel .gallery-item[data-position="previous"] { --x: calc(var(--photo-width) * -.55); --turn: 25deg; }
.gallery-carousel .gallery-item[data-position="next"] { --x: calc(var(--photo-width) * .55); --turn: -25deg; }
.gallery-carousel .gallery-item[data-position="previous-two"], .gallery-carousel .gallery-item[data-position="next-two"] { --z: calc(var(--photo-width) * -.5625); --scale: .65; opacity: .55; filter: grayscale(1) brightness(.7); z-index: 8; cursor: pointer; }
.gallery-carousel .gallery-item[data-position="previous-two"] { --x: calc(var(--photo-width) * -.95); --turn: 38deg; }
.gallery-carousel .gallery-item[data-position="next-two"] { --x: calc(var(--photo-width) * .95); --turn: -38deg; }
.gallery-carousel .gallery-item[data-position="off-left"], .gallery-carousel .gallery-item[data-position="off-right"] { --z: calc(var(--photo-width) * -1); --scale: .45; opacity: 0; filter: grayscale(1) brightness(.6); visibility: hidden; pointer-events: none; z-index: 0; transition: transform 1.1s cubic-bezier(.16,1,.3,1), filter 1.3s cubic-bezier(.22,1,.36,1) .08s, opacity 1.1s cubic-bezier(.16,1,.3,1), visibility 0s 1.1s; }
.gallery-carousel .gallery-item[data-position="off-left"] { --x: calc(var(--photo-width) * -1.2); --turn: 45deg; }
.gallery-carousel .gallery-item[data-position="off-right"] { --x: calc(var(--photo-width) * 1.2); --turn: -45deg; }
.gallery-carousel .gallery-item img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; object-position: center; filter: none; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.gallery-carousel .gallery-item:hover img { transform: none; filter: none; }
.gallery-carousel .gallery-item > span { display: none; }
.gallery-controls { display: flex; align-items: center; justify-content: center; gap: 27px; margin: 4px auto 0; padding: 0 18px; }
.gallery-controls > button { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 48px; padding: 8px; border: 0; background: transparent; color: #f4e9f5; transition: opacity .2s, transform .2s; }
.gallery-controls > button:hover { opacity: .7; }
.gallery-controls > button:active { transform: scale(.9); }
.gallery-controls svg { width: 25px; height: 25px; stroke-width: 1.1; }
.gallery-photo-caption { min-width: 118px; text-align: center; }
.gallery-photo-caption > p:first-child { font: 400 27px/1.2 var(--serif); letter-spacing: .1em; color: #f4e9f5; }
.gallery-counter { margin-top: 8px; font: 400 10px/1.4 var(--sans); letter-spacing: .12em; color: #d5bfdc; }
.gallery-counter b { font-weight: 400; }
.gallery-counter span { font: inherit; color: inherit; margin-left: 5px; }
.gallery-section .gallery-hint { margin: 12px 25px 0; font-size: 9px; line-height: 1.9; color: #d8c5df; }
.gallery-motion { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; padding: 7px 12px; border: 1px solid #cdb1ce4d; border-radius: 20px; background: #170e20a8; color: #d2bdd8; font-size: 8px; letter-spacing: .03em; }
.gallery-motion svg { width: 13px; height: 13px; }
.gallery-play-icon, .gallery-motion.is-paused .gallery-pause-icon { display: none; }
.gallery-motion.is-paused .gallery-play-icon { display: block; }

@media (max-width: 420px) {
  .cover-photo { margin: 17px 12px 0; padding: 12px 12px 104px; }
  .cover-countdown { bottom: 14px; width: calc(100% - 34px); padding-inline: 13px; }
  .cover-countdown-digits { gap: 8px; }
  .cover-countdown-digits b { font-size: 31px; }
  .cover-countdown-label { font-size: 6px; }
  .cover-caption { padding-inline: 9px; }
  .dresscode-section { padding-top: 142px; }
  .dresscode-options { gap: 11px; margin-top: 27px; }
  .dresscode-card { padding: 24px 10px 21px; }
  .dresscode-silhouette { width: 59px; height: 79px; margin-bottom: 18px; }
  .dresscode-person { font-size: 7px; letter-spacing: .17em; }
  .dresscode-colors { font-size: 25px; min-height: 58px; }
  .gallery-section { padding-inline: 0; }
  .gallery-section > h2 { font-size: 48px; }
  .gallery-carousel .gallery-item { padding: 4px; }
  .gallery-controls { gap: 15px; }
  .gallery-photo-caption > p:first-child { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .gallery-carousel .gallery-item, .gallery-controls > button { transition: none !important; } }
