.wedding-hero {
    position: relative;
    isolation: isolate;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #18313b;
    color: #fff;
}

.wedding-hero-slides,
.wedding-hero-slides .carousel-inner,
.wedding-hero-slides .carousel-item {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.wedding-hero-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
}

.wedding-hero-shade {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 23, 31, .94) 0%, rgba(10, 23, 31, .72) 60%, rgba(10, 23, 31, .35) 100%);
}

.wedding-hero-content {
    position: relative;
    z-index: 1;
    padding-top: 72px;
    padding-bottom: 72px;
    animation: wedding-arrive 650ms ease-out both;
}

.wedding-hero-controls {
    position: absolute;
    z-index: 2;
    right: max(24px, calc((100vw - 1140px) / 2));
    bottom: 34px;
    display: flex;
    gap: 8px;
}

.wedding-hero-controls button {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    background: rgba(10, 23, 31, .34);
    color: #fff;
}

.wedding-hero-controls button:hover,
.wedding-hero-controls button:focus-visible {
    background: #d8ad65;
    color: #182b34;
}

.wedding-eyebrow {
    margin: 0 0 14px;
    color: #d8ad65;
    font-size: 0.78rem;
    font-weight: 700;
}

.wedding-hero h1 {
    max-width: 740px;
    margin: 0;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.08;
}

.wedding-hero-copy {
    max-width: 610px;
    margin: 22px 0 30px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.08rem;
    line-height: 1.8;
}

.wedding-primary-link {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    gap: 14px;
    padding: 0 21px;
    border: 1px solid #d8ad65;
    border-radius: 4px;
    background: #d8ad65;
    color: #182b34;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease;
}

.wedding-primary-link:hover,
.wedding-primary-link:focus-visible {
    background: transparent;
    color: #fff;
}

.wedding-gallery-section {
    padding: 78px 0;
}

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

.wedding-form-field {
    min-width: 0;
}

.wedding-form-field-wide {
    grid-column: 1 / -1;
}

.wedding-form-field label {
    display: block;
    margin-bottom: 7px;
    color: #18313b;
    font-size: .92rem;
    font-weight: 700;
}

.wedding-form-field label span {
    color: #6b757a;
    font-size: .84rem;
    font-weight: 400;
}

.wedding-form-field .form-control,
.wedding-form-field .form-select {
    min-height: 46px;
    border-color: #d9dddc;
}

.wedding-form-field .form-control:focus,
.wedding-form-field .form-select:focus {
    border-color: #d8ad65;
    box-shadow: 0 0 0 .2rem rgba(216, 173, 101, .2);
}

.wedding-form-field ul,
.wedding-form-errors {
    margin: 6px 0 0;
    padding: 0;
    color: #a32828;
    font-size: .88rem;
    list-style: none;
}

.wedding-inquiry-notice {
    margin: 18px 0;
    padding: 12px 14px;
    border: 1px solid #badbcc;
    border-radius: 4px;
    background: #d1e7dd;
    color: #0f5132;
}

.wedding-inquiry-notice-warning {
    border-color: #ffecb5;
    background: #fff3cd;
    color: #664d03;
}

.wedding-inquiry-submit {
    margin-top: 22px;
    font: inherit;
    cursor: pointer;
}

.wedding-section-heading {
    max-width: 710px;
    margin: 0 auto 34px;
    text-align: center;
}

.wedding-section-heading h2,
.wedding-gallery-empty h2,
.wedding-contact-band h2 {
    margin: 0 0 14px;
    color: #18313b;
    font-family: 'Roboto', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
}

.wedding-section-heading > p:last-child,
.wedding-gallery-empty > .container > p:not(.wedding-eyebrow),
.wedding-contact-band > .container > div > p:last-child {
    margin: 0;
    color: #536168;
    line-height: 1.75;
}

.wedding-gallery-section {
    background: #fff;
}

.wedding-gallery-heading {
    margin-bottom: 38px;
}

.wedding-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.wedding-photo-tile {
    position: relative;
    min-width: 0;
    aspect-ratio: 4 / 3;
    margin: 0;
    overflow: hidden;
    border-radius: 6px;
    background: #e5e4df;
}

.wedding-photo-open {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    text-align: left;
    cursor: zoom-in;
}

.wedding-photo-open img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 350ms ease;
}

.wedding-photo-open:hover img,
.wedding-photo-open:focus-visible img {
    transform: none;
}

.wedding-photo-open:focus-visible {
    outline: 3px solid #d8ad65;
    outline-offset: -3px;
}

.wedding-photo-label {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 46px 20px 18px;
    color: #fff;
    background: linear-gradient(transparent, rgba(8, 17, 21, 0.82));
    font-size: 1.05rem;
    font-weight: 700;
}

.wedding-photo-modal .modal-content {
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
    border: 0;
    border-radius: 0;
}

.wedding-photo-modal .modal-header {
    border-bottom: 1px solid #e7e8e5;
}

.wedding-photo-modal .modal-title {
    margin: 0;
    color: #18313b;
    font-size: 1.1rem;
    font-weight: 700;
}

.wedding-photo-modal .modal-body {
    display: grid;
    min-height: 0;
    grid-template-columns: minmax(0, 1.65fr) minmax(360px, 1fr);
    gap: 0;
    overflow: hidden;
    padding: 0;
}

.wedding-detail-image-wrap {
    display: flex;
    min-width: 0;
    min-height: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
}

.wedding-detail-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.wedding-image-hint {
    display: none;
}

.wedding-inquiry-panel {
    overflow-y: auto;
    padding: 32px clamp(24px, 4vw, 58px);
    background: #fff;
}

.wedding-inquiry-heading {
    margin-bottom: 24px;
}

.wedding-inquiry-heading .wedding-eyebrow {
    margin-bottom: 8px;
}

.wedding-inquiry-heading h3 {
    margin: 0 0 8px;
    color: #18313b;
    font-family: 'Roboto', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
}

.wedding-inquiry-heading p:last-child {
    margin: 0;
    color: #536168;
    line-height: 1.5;
}

.wedding-gallery-empty {
    padding: 70px 0;
    background: #f5f4ef;
    text-align: center;
}

.wedding-gallery-empty .container {
    max-width: 760px;
}

.wedding-gallery-empty .wedding-primary-link {
    margin-top: 25px;
}

.wedding-contact-band {
    padding: 58px 0;
    background:
        linear-gradient(rgba(10, 25, 32, .82), rgba(10, 25, 32, .82)),
        url("../img/r20.webp") center 45% / cover no-repeat,
        #18313b;
}

.wedding-contact-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.wedding-contact-band h2 {
    max-width: 650px;
    color: #fff;
}

.wedding-contact-band > .container > div > p:last-child {
    max-width: 650px;
    color: rgba(255, 255, 255, 0.78);
}

.footer .container > .row {
    margin-right: 0;
    margin-left: 0;
}

@keyframes wedding-arrive {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
    .wedding-hero {
        min-height: 520px;
    }

    .wedding-hero-image {
        object-position: 58% center;
    }

    .wedding-hero-shade {
        background: linear-gradient(90deg, rgba(10, 23, 31, .95) 0%, rgba(10, 23, 31, .82) 68%, rgba(10, 23, 31, .52) 100%);
    }

    .wedding-hero-controls {
        right: 20px;
        bottom: 20px;
    }

    .wedding-hero-content {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .wedding-hero h1 {
        font-size: 2.6rem;
    }

    .wedding-hero-copy {
        font-size: 1rem;
    }

    .wedding-gallery-section {
        padding: 54px 0;
    }

    .wedding-section-heading h2,
    .wedding-gallery-empty h2,
    .wedding-contact-band h2 {
        font-size: 1.8rem;
    }

    .wedding-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .wedding-photo-tile {
        aspect-ratio: 4 / 3;
    }

    .wedding-photo-open {
        height: 100%;
    }

    .wedding-photo-label {
        padding: 12px;
        font-size: 0.95rem;
    }

    .wedding-photo-open:hover img,
    .wedding-photo-open:focus-visible img {
        transform: none;
    }
    .wedding-photo-modal .modal-body {
        display: block;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .wedding-photo-modal .wedding-detail-image-wrap {
        display: block;
        width: 100%;
        height: auto;
        padding: 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .wedding-photo-modal .wedding-detail-image-wrap img {
        display: block;
        width: auto;
        height: 75vh;
        height: 75dvh;
        max-width: none;
        max-height: none;
        object-fit: contain;
        object-position: center top;
    }

    .wedding-image-hint {
        display: block;
        margin: 0;
        padding: 8px 12px;
        background: #f5f4ef;
        color: #536168;
        font-size: .82rem;
        text-align: center;
    }

    .wedding-inquiry-panel {
        width: 100%;
        overflow-y: visible;
        padding: 24px 20px 30px;
    }

    .wedding-inquiry-heading {
        margin-bottom: 18px;
    }

    .wedding-inquiry-heading h3 {
        font-size: 1.55rem;
    }

    .wedding-form-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .wedding-form-field-wide {
        grid-column: auto;
    }

    .wedding-contact-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .wedding-photo-grid {
        gap: 10px;
    }

    .wedding-photo-label {
        font-size: 0.88rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wedding-hero-content {
        animation: none;
    }

    .wedding-photo-open img,
    .wedding-primary-link {
        transition: none;
    }
}