/* =========================================================
   CEREMONY DETAIL
   Dark / Red / Responsive
========================================================= */

:root {
    --cd-bg: #07090c;
    --cd-card: #101318;
    --cd-card-2: #151920;
    --cd-border: rgba(255,255,255,.08);

    --cd-red: #d71920;
    --cd-red-light: #ef3340;

    --cd-text: #f5f5f5;
    --cd-muted: #9298a1;

    --cd-radius: 18px;
    --cd-shadow: 0 18px 50px rgba(0,0,0,.35);
}


/* =========================================================
   PAGE
========================================================= */

.ceremony-detail-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0 50px;
    color: var(--cd-text);
}


/* =========================================================
   HEADER
========================================================= */

.ceremony-header {
    position: relative;
    overflow: hidden;

    padding: 35px 25px 30px;

    background:
        linear-gradient(
            145deg,
            rgba(215,25,32,.08),
            rgba(255,255,255,.015) 45%,
            rgba(0,0,0,.15)
        ),
        var(--cd-card);

    border: 1px solid var(--cd-border);
    border-radius: 24px;

    box-shadow: var(--cd-shadow);
}

.ceremony-header::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 180px;
    height: 180px;

    background: radial-gradient(
        circle,
        rgba(215,25,32,.18),
        transparent 70%
    );

    pointer-events: none;
}

.ceremony-header h2 {
    position: relative;
    margin: 0 0 12px;

    color: #fff;

    font-size: clamp(22px, 3vw, 34px);
    font-weight: 900;
    line-height: 1.5;
}

.ceremony-header h2::after {
    content: "";
    display: block;

    width: 55px;
    height: 3px;

    margin: 12px auto 0;

    background: linear-gradient(
        90deg,
        var(--cd-red),
        var(--cd-red-light)
    );

    border-radius: 20px;
}

.ceremony-header p {
    margin: 0 0 25px;

    color: var(--cd-muted);

    font-size: 14px;
}

.ceremony-header h4 {
    margin: 0 0 15px;

    color: #ddd;

    font-size: 15px;
    font-weight: 700;
}


/* =========================================================
   POSTER
========================================================= */

.ceremony-header > img {
    display: block;

    width: 180px !important;
    height: 255px;

    margin: 0 auto;

    object-fit: cover;

    border: 2px solid rgba(215,25,32,.45);
    border-radius: 14px !important;

    background: #08090b;

    cursor: pointer;

    box-shadow:
        0 15px 40px rgba(0,0,0,.55),
        0 0 0 5px rgba(215,25,32,.05);

    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;
}

.ceremony-header > img:hover {
    transform: translateY(-6px) scale(1.02);

    border-color: var(--cd-red);

    box-shadow:
        0 22px 50px rgba(0,0,0,.65),
        0 0 30px rgba(215,25,32,.18);
}


/* =========================================================
   FILE GROUP
========================================================= */

.file-type-group {
    position: relative;

    margin-top: 30px;
    padding: 25px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.025),
            rgba(255,255,255,.005)
        ),
        var(--cd-card);

    border: 1px solid var(--cd-border);
    border-radius: var(--cd-radius);

    box-shadow: 0 12px 35px rgba(0,0,0,.2);
}

.file-type-group h3 {
    position: relative;

    display: flex;
    align-items: center;

    gap: 10px;

    margin: 0 0 20px;

    color: #fff;

    font-size: 18px;
    font-weight: 800;
}

.file-type-group h3::before {
    content: "";

    width: 5px;
    height: 25px;

    background: linear-gradient(
        180deg,
        var(--cd-red-light),
        var(--cd-red)
    );

    border-radius: 10px;
}


/* =========================================================
   FILE ITEM
========================================================= */

.file-item {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 8px !important;

    background: rgba(255,255,255,.015);

    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px;

    transition:
        transform .3s ease,
        border-color .3s ease,
        background .3s ease;
}

.file-item:hover {
    transform: translateY(-4px);

    background: rgba(215,25,32,.06);

    border-color: rgba(215,25,32,.35);
}


/* =========================================================
   IMAGE FILES
========================================================= */

.file-item img {
    display: block;

    width: 100%;
    aspect-ratio: 4 / 3;

    object-fit: cover;

    border-radius: 10px !important;

    cursor: pointer;

    background: #08090b;

    transition:
        transform .35s ease,
        filter .35s ease;
}

.file-item:hover img {
    transform: scale(1.025);

    filter: brightness(1.08);
}


/* =========================================================
   FILE BUTTONS
========================================================= */

.file-link {
    width: 100%;
    min-height: 65px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 12px 14px;

    color: #f5f5f5;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;

    line-height: 1.7;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.035),
            rgba(255,255,255,.01)
        );

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;

    cursor: pointer;

    transition:
        all .3s ease;
}

.file-link:hover {
    color: #fff;

    background:
        linear-gradient(
            145deg,
            rgba(215,25,32,.18),
            rgba(215,25,32,.04)
        );

    border-color: rgba(215,25,32,.5);

    transform: translateY(-3px);

    box-shadow:
        0 8px 25px rgba(215,25,32,.12);
}


/* =========================================================
   VIDEO / AUDIO BUTTON ICON EFFECT
========================================================= */


/* =========================================================
   FADE IN
========================================================= */

.fade-in {
    opacity: 0;
    transform: translateY(12px);

    transition:
        opacity .5s ease,
        transform .5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================
   CUSTOM MODAL
========================================================= */

.custom-modal {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0,0,0,.82);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .3s ease,
        visibility .3s ease;
}

.custom-modal.active {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;
}


/* =========================================================
   MODAL CONTENT
========================================================= */

.custom-modal .modal-content {
    position: relative;

    width: min(850px, 100%);

    max-height: 90vh;

    padding: 22px;

    overflow: auto;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.035),
            rgba(255,255,255,.01)
        ),
        #0d1014;

    border: 1px solid rgba(255,255,255,.09);

    border-radius: 20px;

    box-shadow:
        0 30px 100px rgba(0,0,0,.7),
        0 0 50px rgba(215,25,32,.08);

    transform: scale(.94) translateY(15px);

    transition:
        transform .35s ease;
}

.custom-modal.active .modal-content {
    transform: scale(1) translateY(0);
}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.custom-modal .close,
.custom-modal .close-audio,
.custom-modal .close-image {
    position: absolute;

    top: 10px;
    right: 14px;

    z-index: 10;

    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;

    font-size: 26px;
    line-height: 1;

    background: rgba(0,0,0,.65);

    border: 1px solid rgba(255,255,255,.1);
    border-radius: 50%;

    cursor: pointer;

    transition:
        background .25s ease,
        transform .25s ease,
        color .25s ease;
}

.custom-modal .close:hover,
.custom-modal .close-audio:hover,
.custom-modal .close-image:hover {
    color: #fff;

    background: var(--cd-red);

    transform: rotate(90deg);
}


/* =========================================================
   VIDEO
========================================================= */

#modalVideo {
    display: block;

    width: 100%;
    max-height: 75vh;

    background: #000;

    border-radius: 12px;

    outline: none;
}

#videoTitle {
    margin: 15px 0 0;

    color: #fff;

    text-align: center;

    font-size: 15px;
    font-weight: 700;
}


/* =========================================================
   AUDIO
========================================================= */

#audioModal .modal-content {
    width: min(600px, 100%);

    padding: 55px 25px 25px;
}

#modalAudio {
    display: block;

    width: 100%;

    border-radius: 10px;
}

#audioTitle {
    margin: 18px 0 0;

    color: #fff;

    text-align: center;

    font-size: 15px;
    font-weight: 700;
}


/* =========================================================
   IMAGE MODAL
========================================================= */

#imageModal .modal-content {
    width: min(850px, 95vw);

    padding: 15px;
}

#modalImage {
    display: block;

    width: 100% !important;
    max-width: 100%;

    max-height: 82vh;

    object-fit: contain;

    background: #050505;

    border-radius: 12px !important;
}


/* =========================================================
   BACK BUTTON
========================================================= */

.ceremony-detail-wrapper > button {
    position: relative;

    margin-top: 30px !important;

    min-width: 120px;

    border-color: rgba(255,255,255,.15) !important;

    border-radius: 50px !important;

    font-family: inherit;

    transition:
        all .3s ease;
}

.ceremony-detail-wrapper > button:hover {
    color: #fff;

    background: var(--cd-red);

    border-color: var(--cd-red) !important;

    transform: translateY(-2px);

    box-shadow:
        0 8px 25px rgba(215,25,32,.2);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .ceremony-detail-wrapper {
        padding: 10px 0 40px;
    }

    .ceremony-header {
        padding: 30px 20px;
    }

    .file-type-group {
        padding: 20px;
    }

    .file-item {
        min-height: 100%;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .container.my-5 {
        margin-top: 25px !important;
        margin-bottom: 25px !important;
    }

    .ceremony-detail-wrapper {
        padding: 0 5px 35px;
    }

    .ceremony-header {
        padding: 25px 15px;

        border-radius: 18px;
    }

    .ceremony-header h2 {
        font-size: 21px;
    }

    .ceremony-header p {
        font-size: 12px;

        margin-bottom: 20px;
    }

    .ceremony-header h4 {
        font-size: 13px;
    }

    .ceremony-header > img {
        width: 145px !important;
        height: 210px;
    }

    .file-type-group {
        margin-top: 20px;

        padding: 16px 12px;

        border-radius: 15px;
    }

    .file-type-group h3 {
        margin-bottom: 15px;

        font-size: 15px;
    }

    .file-type-group h3::before {
        width: 4px;
        height: 21px;
    }

    .file-item {
        padding: 6px !important;

        border-radius: 11px;
    }

    .file-link {
        min-height: 58px;

        padding: 9px;

        font-size: 11px;
    }

    .file-item img {
        aspect-ratio: 1 / 1;
    }

    .custom-modal {
        padding: 10px;
    }

    .custom-modal .modal-content {
        width: 100%;

        padding: 15px;

        border-radius: 15px;
    }

    #imageModal .modal-content {
        padding: 8px;
    }

    #modalImage {
        max-height: 82vh;
    }

    #videoTitle,
    #audioTitle {
        font-size: 13px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .ceremony-header {
        padding: 22px 12px;
    }

    .ceremony-header h2 {
        font-size: 18px;
    }

    .ceremony-header > img {
        width: 125px !important;
        height: 180px;
    }

    .file-type-group {
        padding: 13px 8px;
    }

    .file-link {
        min-height: 52px;

        font-size: 10px;
    }

    .custom-modal .modal-content {
        padding: 12px;
    }

    .custom-modal .close,
    .custom-modal .close-audio,
    .custom-modal .close-image {
        width: 31px;
        height: 31px;

        font-size: 22px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

}




@media (max-width: 768px) {
.ceremony-header{
    margin-top: 80px !important;
}






}