.royal-template {
    background: #fbf6ef;
    color: #251724;
    font-family: Georgia, "Times New Roman", serif;
}

.royal-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px clamp(18px, 4vw, 54px);
    background: rgba(251, 246, 239, 0.92);
    border-bottom: 1px solid rgba(131, 92, 39, 0.18);
    backdrop-filter: blur(18px);
}

.royal-brand,
.royal-nav {
    display: flex;
    align-items: center;
    gap: 14px;
}

.royal-brand {
    text-decoration: none;
}

.royal-brand span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: #7d1d3f;
    color: #fff8ec;
    font-weight: 800;
}

.royal-brand strong,
.royal-nav a,
.royal-copy {
    color: #251724;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.royal-nav a {
    text-decoration: none;
}

.royal-copy,
.royal-btn {
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    background: #7d1d3f;
    color: #fff8ec;
    cursor: pointer;
    padding: 12px 22px;
    text-decoration: none;
}

.royal-hero {
    position: relative;
    min-height: 92vh;
    display: grid;
    align-items: end;
    padding: clamp(110px, 14vw, 170px) clamp(20px, 6vw, 86px) clamp(64px, 8vw, 100px);
    overflow: hidden;
}

.royal-hero::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(37, 23, 36, 0.78), rgba(37, 23, 36, 0.24) 54%, rgba(251, 246, 239, 0.18));
}

.royal-hero-media {
    position: absolute;
    inset: 0;
}

.royal-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.royal-hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    color: #fff8ec;
}

.royal-kicker {
    margin: 0 0 12px;
    color: #b88746;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.royal-hero h1,
.royal-section h2,
.royal-footer h2 {
    margin: 0;
    font-size: clamp(42px, 8vw, 92px);
    line-height: 0.98;
}

.royal-hero h1 span {
    display: block;
    color: #d6a75d;
    font-size: 0.48em;
    margin: 10px 0;
}

.royal-date,
.royal-message,
.royal-section-head p {
    color: rgba(37, 23, 36, 0.72);
    font-size: 18px;
    line-height: 1.7;
}

.royal-hero .royal-date,
.royal-hero .royal-message {
    color: rgba(255, 248, 236, 0.88);
}

.royal-date span {
    display: block;
}

.royal-countdown {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    margin: 18px 0 8px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 248, 236, 0.34);
    border-radius: 999px;
    background: rgba(255, 248, 236, 0.12);
}

.royal-countdown strong {
    color: #d6a75d;
    font-size: 30px;
}

.royal-actions,
.royal-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.royal-btn-light {
    background: #fff8ec;
    color: #251724;
}

.royal-section {
    padding: clamp(70px, 9vw, 118px) clamp(20px, 6vw, 86px);
}

.royal-section-head {
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: center;
}

.royal-section h2,
.royal-footer h2 {
    color: #251724;
    font-size: clamp(34px, 5vw, 58px);
}

.royal-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.royal-detail-grid article,
.royal-timeline article,
.royal-map-card,
.royal-form,
.royal-share {
    border: 1px solid rgba(131, 92, 39, 0.18);
    border-radius: 18px;
    background: rgba(255, 252, 245, 0.86);
    box-shadow: 0 22px 60px rgba(74, 45, 26, 0.1);
}

.royal-detail-grid article {
    padding: 22px;
}

.royal-detail-grid span,
.royal-map-card span {
    display: block;
    color: #8a5f25;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.royal-detail-grid strong,
.royal-map-card strong {
    display: block;
    margin-top: 10px;
    font-size: 20px;
}

.royal-timeline {
    display: grid;
    gap: 14px;
    max-width: 840px;
    margin: 34px auto 0;
}

.royal-timeline article {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 18px;
    padding: 20px;
}

.royal-timeline time {
    color: #7d1d3f;
    font-weight: 800;
}

.royal-gallery-section,
.royal-rsvp {
    background: #f3eadc;
}

.royal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}

.royal-gallery-item {
    position: relative;
    display: block;
    min-height: 250px;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: #251724;
    cursor: zoom-in;
}

.royal-gallery-item img {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
    transition: transform 220ms ease;
}

.royal-gallery-item:hover img {
    transform: scale(1.04);
}

.royal-gallery-item span {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    color: #fff8ec;
    text-align: left;
}

.royal-map-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 900px;
    margin: auto;
    padding: 28px;
}

.royal-form {
    display: grid;
    gap: 16px;
    max-width: 760px;
    margin: auto;
    padding: clamp(20px, 4vw, 34px);
}

.royal-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.royal-error {
    background: #fef2f2;
    color: #991b1b;
}

.royal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: clamp(44px, 7vw, 72px) clamp(20px, 6vw, 86px);
    background: #251724;
    color: #fff8ec;
}

.royal-footer h2,
.royal-footer p {
    color: #fff8ec;
}

.royal-share {
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 520px;
    padding: 18px;
    background: rgba(255, 248, 236, 0.08);
}

.royal-share img {
    width: 128px;
    border-radius: 14px;
    background: #fff;
}

.royal-share-actions a,
.royal-share-actions button {
    border: 1px solid rgba(255, 248, 236, 0.24);
    border-radius: 999px;
    background: transparent;
    color: #fff8ec;
    cursor: pointer;
    padding: 9px 14px;
    text-decoration: none;
}

.royal-lightbox {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 28px;
    background: rgba(37, 23, 36, 0.88);
}

.royal-lightbox img {
    max-height: 88vh;
    border-radius: 18px;
    object-fit: contain;
}

@media (max-width: 860px) {
    .royal-nav {
        display: none;
    }

    .royal-detail-grid,
    .royal-form-grid {
        grid-template-columns: 1fr;
    }

    .royal-map-card,
    .royal-footer,
    .royal-share {
        align-items: flex-start;
        flex-direction: column;
    }

    .royal-timeline article {
        grid-template-columns: 1fr;
    }
}
