html,
body {
  overflow-x: hidden;
}

@font-face {
  font-family: 'UVN';
  src: url('./fonts/UVNHoaTay1.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #e6e2da;
  font-family: 'Lora', serif;
  color: #6e6247;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

body.photo-viewer-open {
  position: fixed;
  top: var(--photo-viewer-scroll-top);
  width: 100%;
}

.page {
  max-width: 430px;
  margin: 0 auto;
  background: #f4f2ee;
  overflow: hidden;
}

.script {
  font-family: 'UVN', sans-serif;
  font-weight: 500;
}

.small {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.photo {
  background-color: #cfc8bb;
  background-size: cover;
  background-position: center;
}

section {
  text-align: center;
  position: relative;
}

/* Hero */
.hero {
  height: 560px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: #fff;
  background-image: url('./images/DCV04618.webp');
}

.hero::before,
.thisday::before,
.timeline::before,
.thanks::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .55));
}

.hero-text {
  position: relative;
  padding-bottom: 36px;
}

.hero h1 {
  font-size: 58px;
  font-weight: 500;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.35);
}

.hero .date {
  font-size: 24px;
  margin-top: 4px;
}

/* Envelope */
.envelope {
  padding: 60px 28px;
  background: #ece8e0;
}

.env-card {
  background: #faf9f6;
  padding: 40px 20px;
  box-shadow: 0 6px 24px rgba(90, 80, 60, .15);
}

.env-card .name {
  font-size: 34px;
  line-height: 1.2;
}

.env-card .amp,
.info .amp {
  font-size: 26px;
}

.countdown {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
}

.countdown div {
  display: flex;
  flex-direction: column;
  min-width: 44px;
}

.countdown b {
  font-size: 28px;
  font-weight: 500;
}

.countdown span {
  font-size: 11px;
}

.countdown i {
  font-style: normal;
  font-size: 26px;
}

/* This day */
.thisday {
  height: 280px;
  color: #fff;
  padding-top: 18px;
  background-image: url('./images/DCV04134.webp');
}

.thisday h2 {
  position: relative;
  font-size: 44px;
  line-height: 50px;
  text-align: center;
}

.thisday .small {
  position: relative;
  text-align: center;
}

/* Info */
.info {
  padding: 56px 24px 64px;
}

.families {
  display: flex;
  justify-content: space-around;
  font-size: 14px;
  margin-bottom: 30px;
  gap: 10px;
}

.families h3 {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.family-address {
  font-size: 10px;
}

.family-directions {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  padding: 2px 7px;
  transition: all 0.3s ease;
  opacity: 0.75;
  width: max-content;
  margin: 4px auto;
}

.family-directions:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.06);
  transform: scale(1.05);
}

.invite {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.info .name {
  font-size: 43px;
  line-height: 1.1;
}

.time {
  margin-top: 24px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.bigdate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 8px 0;
}

.bigdate span {
  border-top: 1px solid #a89a76;
  border-bottom: 1px solid #a89a76;
  padding: 2px 12px;
  font-size: 14px;
  text-transform: uppercase;
}

.bigdate strong {
  font-size: 56px;
  font-weight: 500;
}

.lunar {
  font-style: italic;
  font-size: 14px;
}

.venue-label {
  margin-top: 24px;
}


.venue-location {
  font-size: 18px;
  font-weight: 600;
}

.venue {
  font-size: 22px;
  font-weight: 600;
}

.addr {
  font-size: 14px;
}

.directions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 6px auto;
  color: #6e6247;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: max-content;
  padding: 2px 11px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 18px;
}

.directions:hover,
.directions:focus-visible {
  color: #a89a76;
}

/* Timeline */
.timeline {
  height: 560px;
  color: #fff;
  text-align: left;
  padding: 24px;
  background-image: url('./images/DCV04064.webp');
}

.timeline::before {
  background: linear-gradient(to bottom, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0) 45%);
}

.timeline h2 {
  position: relative;
  font-size: 46px;
}

.timeline ul {
  position: relative;
  list-style: none;
  margin: 8px 0 0 10px;
}

.timeline li {
  margin-bottom: 18px;
  text-transform: uppercase;
  font-size: 15px;
}

.timeline li b {
  display: block;
  font-weight: 600;
}

/* Story */
.story {
  padding: 40px 28px;
}

.mono-image {
  position: relative;
  display: inline-block;
  width: 150px;
  height: 150px;
}

.mono-image img {
  display: block;
  width: 100%;
  filter: brightness(0) saturate(100%) invert(79%) sepia(10%) saturate(500%) hue-rotate(2deg) brightness(88%) contrast(85%);
  height: auto;
}

.quote {
  font-size: 14px;
  margin: 0 0 10px;
}

.polaroids {
  position: relative;
  height: 420px;
  margin: 24px 0;
}

.pol {
  position: absolute;
  width: 52%;
  background: #fff;
  padding: 8px 8px 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
}

.pol .photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.pol .photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pol.left {
  left: -4%;
  top: 0;
  transform: rotate(-6deg);
}

.pol.right {
  right: -4%;
  top: 190px;
  transform: rotate(5deg);
}

.pol figcaption {
  position: absolute;
  font-size: 32px;
  width: 100%;
  font-family: 'UVN', sans-serif;
}

.pol.left figcaption {
  left: 110%;
  top: 40%;
  transform: rotate(6deg);
}

.pol.right figcaption {
  right: 110%;
  top: 40%;
  transform: rotate(-5deg);
}

.pol figcaption span {
  display: block;
  font-size: 22px;
  line-height: 1;
  color: #b9ae92;
}

.month {
  font-size: 48px;
  margin-top: 28px;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  justify-items: center;
  align-items: center;
  gap: 10px 0;
  margin-top: 12px;
  font-size: 14px;
}

.calendar .dow {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
}

.calendar .today {
    width: 36px;
    height: 36px;
    line-height: 40px;
    margin: 0 auto;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.2C.9 8.4 3 4.5 6.7 4.5c2 0 3.6 1.1 5.3 3 1.7-1.9 3.3-3 5.3-3 3.7 0 5.8 3.9 4.3 7.3C19.5 16.4 12 21 12 21z' fill='none' stroke='%23a89a76' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Album */
.album {
  background: #a89a76;
  color: #fff;
  padding: 36px 14px 20px;
}

.album h2 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 1px;
  text-align: left;
  padding: 0 6px;
}

.album h2 em {
  font-size: 34px;
}

.album .small {
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  padding: 0 6px;
  margin: 6px 0 18px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.grid .photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.grid .photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.photo-viewer {
  position: fixed;
  inset: calc(env(safe-area-inset-top, 0px) + 56px) 0 calc(env(safe-area-inset-bottom, 0px) + 48px);
  width: min(96vw, 1100px);
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0 auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}

.photo-viewer::backdrop {
  background: rgba(0, 0, 0, 0.88);
}

.photo-viewer-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.photo-viewer-image {
  touch-action: pan-y pinch-zoom;
  -webkit-user-select: none;
  user-select: none;
  transition: opacity 0.15s ease;
}

.photo-viewer-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  padding: 0 0 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.photo-viewer-prev { left: 8px; }
.photo-viewer-next { right: 8px; }

@media (min-width: 1000px) {
  .photo-viewer-prev { left: -64px; }
  .photo-viewer-next { right: -64px; }
}

.photo-viewer-counter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -34px;
  text-align: center;
  color: #fff;
  font-size: 14px;
  letter-spacing: 1px;
  pointer-events: none;
}

.photo-viewer-close-arrow {
  position: absolute;
  top: -20px;
  right: 44px;
  z-index: 1;
  width: 112px;
  height: auto;
  filter: invert(1);
  pointer-events: none;
}

.photo-viewer-close {
  position: absolute;
  top: -18px;
  right: 2px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.grid .photo:last-child {
  display: none;
}

.grid .wide {
  grid-column: 1 / -1;
  aspect-ratio: 4/3;
}

.grid .tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

/* RSVP */
.rsvp {
  padding: 48px 24px;
}

.rsvp form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.rsvp input,
.rsvp textarea,
.rsvp select {
  font: 14px 'Cormorant Garamond', serif;
  padding: 9px 14px;
  border: 1px solid #a89a76;
  border-radius: 18px;
  background: #fff;
  color: #6e6247;
}

.rsvp textarea {
  resize: vertical;
}

.rsvp button {
  font: 600 15px 'Cormorant Garamond', serif;
  letter-spacing: 1px;
  padding: 10px;
  border: 0;
  border-radius: 20px;
  background: #a89a76;
  color: #fff;
  cursor: pointer;
}

.rsvp button:hover,
.rsvp button:focus-visible {
  background: #8b7d5e;
}

.rsvp .gift {
  margin-top: 12px;
  width: 100%;
  background: transparent;
  color: #6e6247;
  border: 1px solid #a89a76;
}

.gift-box {
  margin-top: 12px;
  animation: fadeInGift 0.35s ease both;
}

@keyframes fadeInGift {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.gift-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.gift-card {
  background: #fff;
  border-radius: 14px;
  padding: 14px 10px 12px;
  box-shadow: 0 2px 12px rgba(110, 98, 71, 0.1);
  border-top: 3px solid #c9bfa5;
  text-align: center;
}

.gift-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #a89a76;
  margin-bottom: 8px;
  font-weight: 600;
}

.gift-qr {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #ece8e0;
  display: block;
  margin: 0 auto 8px;
}

.gift-name {
  font-size: 13px;
  font-weight: 600;
  color: #5a4e36;
  margin-bottom: 2px;
}

.gift-bank {
  font-size: 11px;
  color: #a89a76;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.gift-account {
  font-size: 14px;
  font-weight: 600;
  color: #6e6247;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.status {
  font-size: 13px;
  min-height: 20px;
  transition: color 0.3s;
}

.status.sending {
  color: #a89a76;
}

.status.success {
  color: #7a9e6e;
  font-weight: 600;
}

.status.error {
  color: #b96e6e;
}

/* Wishes */
.wishes {
  padding: 24px 24px 48px;
  background: linear-gradient(160deg, #faf9f6 0%, #f0ede5 100%);
}

.wishes h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 3px;
}

.wish-container {
  margin-top: 16px;
  max-height: calc(5 * 110px);
  /* ~5 thẻ lời chúc */
  overflow-y: auto;
  scroll-behavior: smooth;
  padding-right: 4px;
}

/* Custom scrollbar */
.wish-container::-webkit-scrollbar {
  width: 4px;
}

.wish-container::-webkit-scrollbar-track {
  background: #ece8e0;
  border-radius: 4px;
}

.wish-container::-webkit-scrollbar-thumb {
  background: #c9bfa5;
  border-radius: 4px;
}

.wish-container::-webkit-scrollbar-thumb:hover {
  background: #a89a76;
}

.wishes ul {
  list-style: none;
  text-align: left;
}

.wish-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  margin-bottom: 8px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(110, 98, 71, 0.08);
  animation: wishSlideIn 0.4s ease both;
  border-left: 3px solid #d4c9ac;
}

@keyframes wishSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.wish-avatar {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9bfa5, #a89a76);
  color: #fff;
  font-family: 'Dancing Script', cursive;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.wish-body {
  flex: 1;
  min-width: 0;
}

.wish-body b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #5a4e36;
}

.wish-side {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #a89a76;
  display: block;
  margin-bottom: 2px;
}

.wish-body p {
  font-size: 13.5px;
  line-height: 1.5;
  color: #6e6247;
  margin: 2px 0 4px;
  word-break: break-word;
}

.wish-body time {
  font-size: 11px;
  color: #b5aa94;
}

.wish-footer {
  margin-top: 12px;
  text-align: center;
}

.wish-footer span {
  display: block;
  font-size: 12px;
  color: #a89a76;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.wish-load-btn {
  font: 600 13px 'Cormorant Garamond', serif;
  letter-spacing: 1px;
  padding: 8px 20px;
  border: 1px solid #a89a76;
  border-radius: 20px;
  background: transparent;
  color: #6e6247;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.wish-load-btn:hover {
  background: #a89a76;
  color: #fff;
}

/* Thanks */
.thanks {
  height: 420px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 28px 40px;
  background-image: url('./images/DCV04143.webp');
  background-position: bottom;
}

.thanks>* {
  position: relative;
}

.thanks p {
  font-size: 14px;
}

.thanks h2 {
  font-size: 44px;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-text {
    animation: rise 1.2s ease-out both;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(16px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* Intro Overlay & Music */
.intro-overlay {
  position: fixed;
  inset: 0;
  background: #f4f2ee;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.intro-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-content {
  text-align: center;
  cursor: pointer;
}

.intro-invite {
  font-family: 'Dancing Script', cursive;
  font-size: 32px;
  color: #a89a76;
  margin-bottom: 18px;
  animation: fadeInDown 1s ease both;
}

.intro-envelope-wrap {
  position: relative;
  display: inline-block;
}

.intro-envelope {
  width: 260px;
  max-width: 80vw;
  transition: transform 0.3s;
}

.intro-envelope-wrap:hover .intro-envelope {
  transform: scale(1.03);
}

.intro-open-area {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.intro-open-btn {
  width: 60px;
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
  animation: pulseBtn 2s ease-in-out infinite;
}

@keyframes pulseBtn {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

.intro-hand {
  width: 32px;
  height: auto;
  margin-top: -4px;
  animation: tapHand 1.2s ease-in-out infinite;
}

@keyframes tapHand {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.intro-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: #a89a76;
  margin-top: 18px;
  margin-bottom: 10px;
}

.intro-text {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #6e6247;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* Music Toggle Button */
.music-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #c9bfa5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 9998;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
}

.music-toggle:hover {
  background: #fff;
  transform: scale(1.1);
}

.music-icon {
  display: inline-block;
  transition: opacity 0.3s;
}

.music-icon.playing {
  animation: spin 3s linear infinite;
}

.music-icon.muted {
  opacity: 0.5;
  filter: grayscale(100%);
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

@media (min-width: 768px) {
  body {
    background: #c9bfa5;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 40px 0;
  }

  .intro-envelope {
    width: 350px;
  }

  .page {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
  }

  .hero {
    height: 870px;
    border-radius: 12px 12px 0 0;
  }

  .hero h1 {
    font-size: 80px;
  }

  .hero .date {
    font-size: 32px;
  }

  .invite {
    font-size: 22px;
  }

  .wishes h2 {
    font-size: 30px;
  }

  .script {
    font-size: 24px;
  }

  .env-card {
    padding: 60px 40px;
    max-width: 600px;
    margin: 0 auto;
  }

  .env-card .name {
    font-size: 48px;
  }

  .thisday {
    height: 400px;
    padding-top: 20px;
  }

  .thisday h2 {
    font-size: 56px;
    line-height: 70px;
  }

  .thisday .small {
    font-size: 16px;
  }

  .info {
    padding: 80px 40px;
  }

  .info .families {
    font-size: 18px;
    gap: 100px;
    justify-content: center;
  }

  .info .name {
    font-size: 72px;
  }

  .bigdate strong {
    font-size: 72px;
  }

  .timeline {
    height: 700px;
    padding: 60px;
  }

  .timeline h2 {
    font-size: 64px;
  }

  .timeline ul {
    margin: 40px 0 0 20px;
  }

  .timeline li {
    font-size: 18px;
  }

  .story {
    padding: 40px 40px 60px;
  }

  .polaroids {
    height: 500px;
    margin: 60px auto;
  }

  .pol.left {
    left: 20px;
    width: 45%;
  }

  .pol.right {
    right: 20px;
    top: 120px;
    width: 45%;
  }

  .calendar {
    max-width: 500px;
    margin: 40px auto 0;
    font-size: 18px;
    gap: 16px 0;
  }

  .calendar .today {
    width: 40px;
    height: 40px;
    line-height: 38px;
  }

  .album {
    padding: 60px 24px 40px;
  }

  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 700px;
    margin: 0 auto;
  }

  .grid .photo:last-child {
    display: block;
  }

  .rsvp {
    padding: 80px 40px;
  }

  .rsvp form {
    margin: 24px auto 0;
  }

  .gift-cards {
    max-width: 600px;
    margin: 16px auto 0;
    gap: 20px;
  }

  .wishes {
    padding: 60px 40px 80px;
  }

  .wish-container {
    max-width: 600px;
    margin: 24px auto;
  }

  .thanks {
    height: 700px;
    border-radius: 0 0 12px 12px;
    padding: 40px 60px 60px;
  }

  .thanks h2 {
    font-size: 64px;
  }

  .music-toggle {
    bottom: 40px;
    right: 40px;
    width: 56px;
    height: 56px;
    font-size: 24px;
  }

  .pol figcaption {
    font-size: 30px;
  }

  .pol.right figcaption {
    top: 85%;
    right: 80%;
  }

  .pol.left figcaption {
    top: 10%;
    left: 80%;
  }
  
  .hidden-pc {
    display: none;
  }
}

.swal2-top-end {
  width: 240px !important;
}

.swal2-toast div:where(.swal2-html-container),
.swal2-toast h2:where(.swal2-title) {
  margin: 3px 3px 0 !important;
  font-size: 14px !important;
}

.video-btn-wrap {
  display: flex;
  justify-content: center;
  padding: 32px 0 12px;
}

.video-shake-btn {

    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #c9973a 0%, #e8c77a 50%, #c9973a 100%);
    color: #fff;
    font-family: 'Lora', serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: none;
    border-radius: 50px;
    padding: 5px 16px;
    cursor: pointer;
    position: relative;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    box-shadow: 0 6px 20px rgba(180, 130, 60, 0.4);
    transition: transform 0.15s, box-shadow 0.15s;
    will-change: transform;

}

.video-shake-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 30px rgba(180, 130, 60, 0.55);
}

.video-shake-btn:active {
  transform: scale(0.96);
}

.video-btn-icon {
  font-size: 20px;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

/* Modal Overlay */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.video-modal.open {
  display: flex;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 6, 2, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.video-modal-inner {
  position: relative;
  z-index: 1;
  width: min(94vw, 430px);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.7);
  animation: modal-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.8) translateY(30px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.video-player {
  display: block;
  width: 100%;
  max-height: 80vh;
  background: #000;
  border-radius: 18px;
}

.video-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 10;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  line-height: 1;
}

.video-modal-close:hover {
  background: rgba(201, 151, 58, 0.85);
  transform: rotate(90deg) scale(1.1);
}

@media (max-width: 600px) {
  .photo-viewer-close {
    top: -48px;
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  .photo-viewer-close-arrow {
    display: none;
  }
}
