/* =========================================================
   TLHOLO & MOGAU — FINAL MOBILE CSS
   Load AFTER responsive.css and gift-registry.css
========================================================= */

@media (max-width: 767px) {

    /* =====================================================
       GLOBAL
    ===================================================== */

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        -webkit-text-size-adjust: 100%;
    }


    /* =====================================================
       HEADER
    ===================================================== */

    .header-area,
    .header-area.header-area-3 {
        min-height: 82px;
        padding: 0;
    }

    .header-area .container {
        max-width: 100%;
        padding-left: 18px;
        padding-right: 18px;
    }

    .logo h1 {
        margin: 0;
        line-height: 82px;
        white-space: nowrap;
    }

    .logo h1 a {
        font-size: 34px;
    }

    .logo h1 a span {
        margin: 0 8px;
    }

    .slicknav_menu {
        padding: 0;
    }

    .slicknav_btn {
        top: 21px;
        right: 18px;
    }


    /* =====================================================
       LANDING / HERO

       IMPORTANT:
       All hero layers use the SAME height.
       This removes the black empty block under the image.
    ===================================================== */

    .slider-area,
    .slider-area2,
    .slider-two,
    .swiper-container,
    .single-slider {
        width: 100% !important;
        height: 100dvh !important;
        min-height: 720px !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .slider-area,
    .slider-area2,
    .swiper-container {
        overflow: hidden !important;
    }

    /* Mobile-only landing image */
    .single-slider {
        background:
            url("../img/slider/tnm9.png")
            no-repeat
            center center / cover !important;
    }

    .slider-content {
        width: 100% !important;
        height: auto !important;

        margin: 0 !important;
        padding: 0 25px !important;

        position: absolute !important;
        top: 52% !important;
        left: 0 !important;

        transform: translateY(-50%) !important;
    }

    .slider-content span {
        font-size: 16px !important;
        letter-spacing: 1px;
    }

    .slider-content h4 {
        font-size: 52px !important;
        line-height: 1.05 !important;
        margin: 20px 0 16px !important;
    }

    .slider-content p {
        display: block !important;
        margin: 0 !important;
        font-size: 21px !important;
        color: #ffffff !important;
    }


    /* =====================================================
       COUNTDOWN — COMPACT MOBILE VERSION
    ===================================================== */

    .count-down-area {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    .count-down-section {
        padding: 35px 0 !important;
        margin: 0 !important;
        min-height: auto !important;
        height: auto !important;
    }

    .count-down-section .container {
        padding-left: 25px;
        padding-right: 25px;
    }

    .count-down-item,
    .count-down-item2 {
        width: 100%;
        max-width: 380px;
        height: auto !important;
        margin: 0 auto !important;
        padding-top: 0 !important;
    }

    /* "We Are Waiting For / The Big Day" */
    .section-area {
        padding: 12px !important;
    }

    .section-area h2 {
        display: block !important;
        width: 100%;

        margin: 0 !important;
        padding: 18px 10px !important;

        font-size: 34px !important;
        line-height: 1.05;
    }

    .count-down-item2 h2 > span {
        margin-bottom: 7px !important;
        font-size: 14px !important;
    }

    /* Number section */
    .clock-area {
        padding: 15px 12px 3px !important;
    }

    .count-down-section #clock {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);

        gap: 9px !important;

        margin: 0 !important;
    }

    .count-down-section #clock > div {
        display: flex;
        flex-direction: column;
        justify-content: center;

        width: 100% !important;
        min-height: 105px !important;

        margin: 0 !important;
        padding: 15px 5px !important;
    }

    .count-down-section #clock .box > div {
        font-size: 34px !important;
        line-height: 1 !important;
    }

    .count-down-section #clock .box span {
        margin-top: 8px !important;

        font-size: 11px !important;
        letter-spacing: 0.5px;
    }


    /* =====================================================
       SECTION TITLES
    ===================================================== */

    .section-title {
        margin-bottom: 32px;
    }

    .section-title h2 {
        margin-bottom: 28px;

        font-size: 42px !important;
        line-height: 1.1;
    }

    .section-title h2:before {
        width: 120px;
        height: 55px;

        left: 50%;
        bottom: -16px;

        transform: translateX(-50%);
        background-size: contain;
    }


    /* =====================================================
       COUPLE
    ===================================================== */

    .couple-area {
        padding-top: 65px !important;
        padding-bottom: 55px !important;
    }

    .couple-item {
        padding-top: 15px !important;
    }

    .couple-single {
        padding-left: 22px;
        padding-right: 22px;
        margin-bottom: 48px;
    }

    .couple-img {
        width: min(82vw, 380px);
        height: min(82vw, 380px);

        margin: 0 auto;
    }

    .couple-img img {
        width: 100%;
        height: 100%;

        object-fit: cover;

        transform: scale(1.06) !important;
    }

    .couple-content {
        margin-top: 22px !important;
    }

    .couple-content h4 {
        margin-bottom: 5px;

        font-size: 27px;
    }

    .couple-content p {
        margin: 0;
        padding: 8px 0 0 !important;

        font-size: 19px;
    }

    .couple-shape {
        padding-top: 0 !important;
        margin: -5px auto 38px;

        text-align: center;
    }

    .couple-shape img {
        width: 120px;
        height: auto;
    }


    /* =====================================================
       WELCOME / CELEBRATE OUR LOVE
    ===================================================== */

    .welcome-area {
        padding-top: 0 !important;
        padding-bottom: 0 !important;

        background-attachment: scroll !important;
    }

    .welcome-content {
        min-height: 560px;

        padding: 85px 18px !important;

        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .welcome-content h2 {
        font-size: 45px !important;
        line-height: 1.08;
    }

    .welcome-content p {
        padding: 20px 0 26px !important;

        font-size: 18px;
        line-height: 1.7;
    }

    .welcome-content .btn {
        display: inline-block;

        width: 48%;

        margin: 0;
        padding: 0 5px;
    }

    .welcome-content .btn a {
        width: 100%;

        padding: 12px 10px;

        text-align: center;
        font-size: 17px;
    }


    /* =====================================================
       WHEN & WHERE
    ===================================================== */

    .service-area,
    .service-area2 {
        padding-top: 65px !important;
        padding-bottom: 65px !important;
    }

    .Ceremony-wrap,
    .service-area2 .Ceremony-wrap {
        margin: 0 !important;
    }

    .ceromony-img img,
    .Ceremony-wrap img {
        display: block;

        width: 100%;
        height: auto;
    }

    .ceromony-content {
        padding: 28px 22px !important;
    }

    .ceromony-content h3 {
        margin-bottom: 20px;

        font-size: 27px !important;
        line-height: 1.2;
    }

    .ceromony-content p,
    .ceromony-content span,
    .ceromony-content a {
        font-size: 17px !important;
        line-height: 1.7;
    }


    /* =====================================================
       RSVP
    ===================================================== */

    .guest-area {
        padding: 65px 0 !important;
    }

    .guest-wrap {
        width: calc(100% - 30px);

        margin: 0 auto;
        padding: 38px 18px !important;
    }

    .guest-wrap .section-title4 h2 {
        font-size: 42px !important;
    }

    .guest-wrap .section-title4 p {
        font-size: 17px;
        line-height: 1.5;
    }

    /* Stack the two-column fields */
    #rsvp-form .col-sm-6,
    #rsvp-form .col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .contact-form input,
    .contact-form .form-control,
    .contact-form .contact-textarea {
        width: 100%;

        /* Prevent iPhone Safari from zooming into inputs */
        font-size: 16px !important;
    }

    .contact-form input,
    .contact-form .form-control {
        height: 54px;
        margin-top: 14px;
    }

    .contact-form .contact-textarea {
        min-height: 150px;
        margin-top: 14px;
    }

    #submit {
        min-width: 135px;

        padding: 12px 26px !important;

        font-size: 17px;
    }


    /* =====================================================
       GIFT REGISTRY
    ===================================================== */

    #gift-registry {
        padding: 65px 0 !important;
    }

    #gift-registry .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    #gift-registry .section-title p {
        font-size: 17px !important;
        line-height: 1.65 !important;
    }

    .gift-registry-form-wrap {
        width: 100%;

        margin-top: 28px !important;
        padding: 28px 18px !important;

        background: #f8f8f8;

        border: 1px solid #e8e8e8;
        border-radius: 12px;
    }

    .gift-registry-form-wrap .row > div {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .gift-registry-form-wrap input,
    .gift-registry-form-wrap select {
        display: block;

        width: 100% !important;
        height: 54px !important;
        min-height: 54px !important;

        margin: 0 0 16px !important;
        padding: 0 15px !important;

        background: #ffffff !important;
        color: #333333 !important;

        border: 1px solid #dddddd !important;
        border-radius: 6px !important;

        font-size: 16px !important;
        line-height: normal !important;

        opacity: 1 !important;

        box-sizing: border-box;

        -webkit-appearance: none;
        appearance: none;
    }

    /* Custom dropdown arrow */
    #giftSelect {
        padding-right: 42px !important;

        background-image:
            linear-gradient(45deg, transparent 50%, #555 50%),
            linear-gradient(135deg, #555 50%, transparent 50%) !important;

        background-position:
            calc(100% - 19px) 23px,
            calc(100% - 14px) 23px !important;

        background-size:
            5px 5px,
            5px 5px !important;

        background-repeat: no-repeat !important;
    }

    /* Anonymous checkbox */
    .gift-anonymous-row {
        margin: 4px 0 18px !important;
    }

    .gift-anonymous-row label {
        display: flex !important;
        align-items: center !important;

        gap: 10px !important;

        font-size: 15px !important;
        line-height: 1.4;
    }

    .gift-anonymous-row input[type="checkbox"] {
        -webkit-appearance: checkbox !important;
        appearance: checkbox !important;

        width: 20px !important;
        height: 20px !important;
        min-height: 20px !important;

        margin: 0 !important;
        padding: 0 !important;

        flex: 0 0 20px;

        accent-color: #1C1C1C;
    }

    #customGiftWrap {
        width: 100%;
    }

    #reserveGiftButton {
        display: block;

        width: 100% !important;
        min-width: 0 !important;

        margin: 5px 0 0 !important;
        padding: 13px 18px !important;

        font-size: 17px !important;
    }

    .gift-message {
        font-size: 15px;
    }


    /* =====================================================
       MUSIC BUTTON
    ===================================================== */

    .music-box {
        width: 48px !important;
        height: 48px !important;

        left: 16px !important;
        right: auto !important;
        bottom: calc(18px + env(safe-area-inset-bottom)) !important;

        position: fixed !important;

        z-index: 9998 !important;

        pointer-events: none;
    }

    .music-box button {
        width: 44px !important;
        height: 44px !important;

        line-height: 42px !important;

        left: 0 !important;
        right: auto !important;
        bottom: 0 !important;

        position: absolute !important;

        pointer-events: auto;
    }


    /* =====================================================
       FOOTER
    ===================================================== */

    .footer-area {
        padding: 65px 15px !important;
    }

    .content-sub {
        width: 100%;
        max-width: 460px;

        margin: 0 auto;
        padding: 50px 20px !important;
    }

    .content-sub h2 {
        font-size: 52px !important;
        line-height: 1;
    }

    .content-sub span {
        font-size: 18px;
    }
}


/* =========================================================
   EXTRA-SMALL PHONES
========================================================= */

@media (max-width: 390px) {

    .logo h1 a {
        font-size: 30px;
    }

    .slider-area,
    .slider-area2,
    .slider-two,
    .swiper-container,
    .single-slider {
        min-height: 650px !important;
    }

    .slider-content h4 {
        font-size: 46px !important;
    }

    .section-title h2 {
        font-size: 38px !important;
    }

    .couple-img {
        width: 84vw;
        height: 84vw;
    }

    .count-down-item {
        max-width: 330px;
    }

    .welcome-content h2 {
        font-size: 42px !important;
    }

    .welcome-content .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}
@media (max-width: 767px) {

    .guest-area {
        background-image:
            linear-gradient(
                rgba(0, 0, 0, 0.60),
                rgba(40, 40, 40, 0.60)
            ),
            url("../img/couple/C4.png") !important;

        background-position: center center !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;

        /* Important for iPhone */
        background-attachment: scroll !important;

        padding: 65px 0 !important;
    }

}

/* =========================================================
   COUPLE SIDE BY SIDE ON MOBILE
========================================================= */

@media (max-width: 767px) {

    .couple-item .row {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
    }

    /* Groom and Bride */
    .couple-item .couple-single:not(:nth-child(2)) {
        flex: 0 0 50% !important;
        max-width: 50% !important;

        padding-left: 8px !important;
        padding-right: 8px !important;

        margin-bottom: 20px !important;
    }

    /* Hide the heart between them on mobile */
    .couple-item .couple-single:nth-child(2) {
        display: none !important;
    }

    .couple-img {
        width: 100% !important;
        height: auto !important;
        max-width: 180px !important;

        aspect-ratio: 1 / 1;

        margin: 0 auto !important;
    }

    .couple-img img {
        width: 100% !important;
        height: 100% !important;

        object-fit: cover !important;

        transform: scale(1.05) !important;
    }

    .couple-content {
        margin-top: 14px !important;
    }

    .couple-content h4 {
        font-size: 19px !important;
        line-height: 1.2 !important;
        margin-bottom: 5px !important;
    }

    .couple-content p {
        font-size: 15px !important;
        padding: 5px 0 0 !important;
        margin: 0 !important;
    }
}