/**
 * ==========================================================
 * DABALASH ORG - Home Media Modal Styles
 * ==========================================================
 */

.daba-org-home-media-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    pointer-events: none;
}

.daba-org-home-media-modal.is-active {
    display: block;
    pointer-events: auto;
}

.daba-org-home-media-modal__overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(255, 255, 255, 0.52);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 420ms ease;
}

.daba-org-home-media-modal.is-visible .daba-org-home-media-modal__overlay {
    opacity: 1;
}

.daba-org-home-media-modal__dialog {
    position: relative;
    width: auto;
    max-width: min(920px, 94vw);
    max-height: 92vh;
    overflow: auto;
    padding: clamp(18px, 3vw, 32px);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(231, 11, 141, 0.12);
    border-radius: 28px;
    box-shadow:
        0 24px 80px rgba(70, 36, 58, 0.16),
        0 8px 24px rgba(70, 36, 58, 0.08);
    transform: translateY(18px) scale(0.965);
    opacity: 0;
    transition:
        transform 480ms cubic-bezier(.22, 1, .36, 1),
        opacity 360ms ease;
}

.daba-org-home-media-modal.is-visible .daba-org-home-media-modal__dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.daba-org-home-media-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #8f496d;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(70, 36, 58, 0.12);
    transition:
        transform 220ms ease,
        background 220ms ease,
        color 220ms ease;
}

.daba-org-home-media-modal__close:hover {
    transform: scale(1.06);
    background: #ffffff;
    color: #e70b8d;
}

.daba-org-home-media-modal__title {
    margin: 0 46px 18px;
    color: #2d2430;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.08;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.035em;
}

.daba-org-home-media-modal__media {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 22px;
    background: #fff7fb;
}

.daba-org-home-media-modal__video {
    width: min(820px, calc(94vw - 44px));
    aspect-ratio: 16 / 9;
    background: #fff7fb;
}

.daba-org-home-media-modal__video iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.daba-org-home-media-modal__media img {
    display: block;
    width: auto;
    max-width: min(820px, calc(94vw - 44px));
    max-height: 68vh;
    height: auto;
    object-fit: contain;
}

.daba-org-home-media-modal__media a {
    display: block;
}

.daba-org-home-media-modal__description {
    max-width: 720px;
    margin: 18px auto 0;
    text-align: center;
}

.daba-org-home-media-modal__description p {
    margin: 0;
    color: #5e5361;
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 1.6;
}

.daba-org-home-media-modal__footer {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.daba-org-home-media-modal__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 24px;
    border-radius: 999px;
    background: #e70b8d;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(231, 11, 141, 0.22);
    transition:
        transform 220ms ease,
        box-shadow 220ms ease,
        background 220ms ease;
}

.daba-org-home-media-modal__cta:hover {
    transform: translateY(-1px);
    background: #cc087c;
    color: #ffffff;
    box-shadow: 0 16px 34px rgba(231, 11, 141, 0.28);
}

body.daba-org-home-media-modal-is-open {
    overflow: hidden;
}

/**
 * Mobile
 */
@media (max-width: 575px) {
    .daba-org-home-media-modal__overlay {
        padding: 14px;
        align-items: center;
    }

    .daba-org-home-media-modal__dialog {
        max-width: 100%;
        max-height: 90vh;
        padding: 18px;
        border-radius: 22px;
    }

    .daba-org-home-media-modal__title {
        margin: 4px 42px 14px;
        font-size: 24px;
    }

    .daba-org-home-media-modal__close {
        top: 10px;
        right: 10px;
        width: 34px;
        height: 34px;
        font-size: 25px;
    }

    .daba-org-home-media-modal__media {
        border-radius: 18px;
    }

    .daba-org-home-media-modal__video {
        width: calc(100vw - 64px);
    }

    .daba-org-home-media-modal__media img {
        max-width: calc(100vw - 64px);
        max-height: 58vh;
    }

    .daba-org-home-media-modal__description {
        margin-top: 14px;
    }

    .daba-org-home-media-modal__description p {
        font-size: 15px;
        line-height: 1.55;
    }
}