/* nguoc.vn — các mẫu được dựng tay riêng (không dùng bố cục chung)
   Mỗi khối dưới đây bám sát bìa mẫu: cùng bố cục, cùng kiểu chữ, cùng chi tiết trang trí. */

/* ============ PARALLAX ẤM ÁP ============
   Bìa mẫu giữ nguyên. Khi bạn tải ảnh của mình: ảnh tràn màn hình,
   chữ "for ever." cỡ lớn ở đáy trái, tên hai bạn in hoa ngay dưới. */
html[data-mau='parallax-am-ap'][data-own-hero] .ihero {
  height: 94svh;
  min-height: 520px;
  border-radius: 0 0 22px 22px;
}
html[data-mau='parallax-am-ap'][data-own-hero] .ihero img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: 52% 32%;
}
html[data-mau='parallax-am-ap'][data-own-hero] .ihero::after {
  height: 55%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.55) 100%);
}
html[data-mau='parallax-am-ap'] .ihead--over {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0 22px 30px;
  text-align: left;
  z-index: 2;
}
html[data-mau='parallax-am-ap'] .forever-word {
  display: block;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(60px, 19.5vw, 104px);
  line-height: 0.82;
  letter-spacing: -0.055em;
  color: #fff;
  margin: 0 0 16px -5px;
}
html[data-mau='parallax-am-ap'] .ihead__eyebrow {
  color: rgba(255, 255, 255, 0.8);
  font-size: 9.5px;
  letter-spacing: 0.34em;
}
html[data-mau='parallax-am-ap'] .ihead__names {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #fff;
}
html[data-mau='parallax-am-ap'] .ihead__amp { font-size: 0.8em; color: rgba(255, 255, 255, 0.75); }
html[data-mau='parallax-am-ap'] .ihead__date {
  color: rgba(255, 255, 255, 0.85);
  font-size: 11.5px;
  letter-spacing: 0.28em;
}
html[data-mau='parallax-am-ap'] .ihead__sub { display: none; }

/* thân thiệp: canh trái, tiêu đề in hoa lớn, kẻ mảnh */
html[data-mau='parallax-am-ap'] .ilabel,
html[data-mau='parallax-am-ap'] .ititle { text-align: left; }
html[data-mau='parallax-am-ap'] .ititle {
  font-size: clamp(27px, 7.4vw, 36px);
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 16px;
}
html[data-mau='parallax-am-ap'] .itext { text-align: left; }
html[data-mau='parallax-am-ap'] .countdown { justify-content: flex-start; gap: 6px; }
html[data-mau='parallax-am-ap'] .countdown > div {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  min-width: 62px;
}
html[data-mau='parallax-am-ap'] .irow { border-color: rgba(255, 255, 255, 0.12); }

/* ============ POLAROID ĐỎ GẠCH ============
   Nền gạch đỏ, thẻ ảnh polaroid dán băng dính, chữ viết tay, album nghiêng nhẹ. */
html[data-mau='polaroid-do-gach'] .invite { gap: 32px; }
html[data-mau='polaroid-do-gach'] .ihead::before {
  content: 'Save the date';
  display: block;
  font-family: var(--fam-script, var(--font-script));
  font-size: 30px;
  line-height: 1;
  color: #f6e7cf;
  transform: rotate(-2deg);
  margin-bottom: 10px;
}
html[data-mau='polaroid-do-gach'] .iblock {
  background: #fdfcf7;
  border: 9px solid #fdfcf7;
  border-bottom-width: 40px;
  border-radius: 2px;
  box-shadow: 0 28px 44px -28px rgba(30, 10, 6, 0.9);
  position: relative;
}
html[data-mau='polaroid-do-gach'] .iblock::before {
  content: '';
  position: absolute;
  top: -22px;
  left: 50%;
  width: 92px;
  height: 24px;
  transform: translateX(-50%) rotate(-3.5deg);
  background: rgba(240, 228, 206, 0.62);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  border-left: 1px dashed rgba(140, 115, 85, 0.28);
  border-right: 1px dashed rgba(140, 115, 85, 0.28);
}
html[data-mau='polaroid-do-gach'] .iblock:nth-of-type(odd) { transform: rotate(-0.9deg); }
html[data-mau='polaroid-do-gach'] .iblock:nth-of-type(even) { transform: rotate(0.8deg); }
html[data-mau='polaroid-do-gach'] .ititle {
  font-family: var(--fam-script, var(--font-script));
  font-size: 30px;
  line-height: 1.1;
}
html[data-mau='polaroid-do-gach'] .igal { gap: 16px; margin-top: 18px; }
html[data-mau='polaroid-do-gach'] .igal img {
  border: 6px solid #fdfcf7;
  border-bottom-width: 26px;
  border-radius: 1px;
  box-shadow: 0 16px 26px -16px rgba(30, 10, 6, 0.85);
}
html[data-mau='polaroid-do-gach'] .igal img:nth-child(odd) { transform: rotate(-2deg); }
html[data-mau='polaroid-do-gach'] .igal img:nth-child(even) { transform: rotate(1.6deg); }
html[data-mau='polaroid-do-gach'] .credit { color: rgba(253, 244, 230, 0.55); }
