/* Base styles (desktop) */
.button-row-group {
    display: flex;
    gap: 20px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

.modal-content-detail {
    background: #fff;
    padding: 20px;
    position: relative;
    border-radius: 8px;
    max-height: 890px;
    height: 100%;
}

.modal-content-detail img,
.modal-content-detail video {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.btn-detail {
    display: flex;
    width: 220px;
    border-radius: 30px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 10px 1.2rem;
    color: var(--color-primary-white);
    font-family: var(--font-henry);
    background: var(--color-primary-blue);
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
}

/* Tablet view (768px - 1024px) */
@media (max-width: 1024px) {
    .button-row-group {
        flex-direction: column; /* stack buttons vertically if needed */
        gap: 15px;
    }

    .btn-detail {
        width: 180px;
        padding: 8px 1rem;
        font-size: 14px;
    }

    .modal-content-detail {
        max-height: 700px;
        width: 80%;
        padding: 15px;
    }

    .close {
        font-size: 24px;
        top: 8px;
        right: 10px;
    }
}

/* Mobile view (up to 767px) */
@media (max-width: 767px) {
    .button-row-group {
        flex-direction: column; /* stack buttons vertically */
        gap: 12px;
    }

    .btn-detail {
        width: 150px;
        padding: 6px 0.8rem;
        font-size: 12px;
    }

    .modal-content-detail {
        max-height: 500px;
        width: 90%;
        padding: 10px;
    }

    .modal-content-detail img,
    .modal-content-detail video {
        height: auto;
    }

    .close {
        font-size: 20px;
        top: 5px;
        right: 8px;
    }
}
