.dcf-popup {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1600;
}

.dcf-popup[hidden] {
  display: none;
}

.dcf-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
}

.dcf-popup__dialog {
  position: relative;
  z-index: 1;
  width: min(850px, calc(100vw - 40px));
}

.dcf-popup__card {
  position: relative;
  width: 100%;
  max-width: 850px;
  aspect-ratio: 1160 / 480;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26.2%;
  background: transparent;
  overflow: visible;
  color: inherit;
  text-decoration: none;
}

.dcf-panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  background: #e9ddbe;
  border-radius: 22px;
  corner-shape: scoop;
}

.dcf-panel--main {
  padding: 18px 24px 18px 24px;
}

.dcf-panel--side {
  background: #8ea39d;
  overflow: hidden;
  width: 185px;
  justify-self: start;
}

.dcf-main-frame {
  position: relative;
  height: 100%;
  border: 2px solid #161616;
  overflow: hidden;
  background: #e9ddbe;
  border-radius: 22px;
  corner-shape: scoop;
}

.dcf-popup-desc {
  position: absolute;
  top: 150px;
  left: 0;
  right: 0;
}

h2.dcf-title {
  background-color: #475350;
  color: transparent;
  text-shadow: 0 3px 3px rgba(255, 255, 255, 0.5);
  -webkit-background-clip: text;
  -moz-background-clip: text;
  background-clip: text;
}

.frame-corner {
  position: absolute;
  width: 30px;
  height: 30px;
  z-index: 5;
  pointer-events: none;
}

.frame-corner svg {
  display: block;
  width: 100%;
  height: 100%;
}

.frame-corner--tl { left: -2px; top: -2px; }
.frame-corner--tr { right: -2px; top: -2px; transform: scaleX(-1); }
.frame-corner--bl { left: -2px; bottom: -2px; transform: scaleY(-1); }
.frame-corner--br { right: -2px; bottom: -2px; transform: scale(-1); }

.dcf-visual {
  position: absolute;
  left: -8px;
  bottom: 8px;
  width: 49%;
  max-width: 460px;
  z-index: 2;
  user-select: none;
  pointer-events: none;
}

.dcf-copy {
  position: relative;
  z-index: 3;
  width: 43%;
  margin-left: auto;
  margin-right: 24px;
  padding-top: 18px;
  text-align: center;
  color: #191919;
}

.dcf-title {
  margin: 0 0 12px;
  line-height: 0.78;
  letter-spacing: -2px;
  text-transform: uppercase;
  color: #6d8981;
  text-shadow: 3px 3px 0 rgba(187, 158, 96, 0.55);
  font-size: clamp(36px, 4.3vw, 58px);
  font-weight: 700;
}

.dcf-title span {
  display: block;
}

.dcf-title em {
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -1px;
  margin: -35px 0 0;
  font-family: "Great Vibes", cursive;
  font-size: clamp(4rem, 6.9vw, 64px);
  line-height: 0.9;
  text-shadow: 0 1px 0 rgba(93, 53, 9, 0.3), 0 5px 5px rgba(0, 0, 0, 0.2);
  transform: rotate(-8deg);
  background-image: linear-gradient(to bottom, #a06636, #fac42e);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  display: inline-block;
  padding: 20px;
  position: absolute;
  top: 98px;
  right: 30px;
}

.dcf-copy p {
    margin: 0 !important;
    font-size: clamp(10px, 1vw, 12px);
    line-height: 1.06;
}

.dcf-datebar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #8ea39d;
    border-top: 2px solid #161616;
    color: #fff8ed;
    font-size: clamp(18px, 2.1vw, 22px);
    font-weight: 500;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    z-index: 5;
    font-family: "cormorant, serif";
}

.dcf-panel--side .perforation {
  position: absolute;
  left: -1px;
  top: 44px;
  bottom: 44px;
  width: 18px;
  background:
    radial-gradient(circle at left center, #e9ddbe 0 8px, transparent 8.5px)
    0 0 / 18px 24px repeat-y;
  z-index: 4;
}

.dcf-side-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  gap: 0px;
  color: #fff;
  text-align: center;
  flex-direction: column;
  padding: 0 80px 0;
}

.dcf-side-title {
  margin: 0!important;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 0.7px;
  color: rgba(255, 255, 255, 0.98);
}

.dcf-side-location {
  margin: 0!important;
  font-size: clamp(10px, 1vw, 14px);
  opacity: 0.96;
  letter-spacing: 0.2px;
}

.dcf-side-location .pin {
  font-size: 22px;
  vertical-align: middle;
}

.dcf-flower {
    position: absolute;
    width: 90px;
    left: -14px;
    filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.12));
    opacity: 0.92;
    z-index: 12;
    pointer-events: none;
}

.dcf-flower--top {
  top: -35px;
}

.dcf-flower--bottom {
  bottom: -35px;
  transform: rotate(180deg);
}

.dcf-close {
  position: absolute;
  top: -48px;
  right: 36px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #e9ddbe;
  color: #111;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  z-index: 12;
}

@media (max-width: 980px) {
  .dcf-popup__dialog {
    width: min(940px, calc(100vw - 28px));
  }

  .dcf-popup__card {
    width: 100%;
    aspect-ratio: 1160 / 520;
  }
}

@media (max-width: 780px) {
  .dcf-popup {
    padding: 10px;
  }

  .dcf-popup__card {
    grid-template-columns: 1fr;
    aspect-ratio: auto;
    max-height: none;
  }

  .dcf-panel--main {
    min-height: 430px;
  }

  .dcf-panel--side {
    min-height: 110px;
    width: auto;
  }

  .dcf-panel--side .perforation {
    display: none;
  }

  .dcf-side-inner {
    writing-mode: horizontal-tb;
    transform: none;
    flex-direction: column;
    gap: 6px;
  }

  .dcf-copy {
    width: 48%;
    margin-right: 18px;
  }

  .dcf-visual {
    width: 54%;
    max-width: 380px;
  }

  .dcf-close {
    top: -42px;
    right: 12px;
  }

  .dcf-flower {
    width: 64px;
    right: -8px;
  }
}
