/* Backdrop */
.custom-promotion-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: none;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

/* Show modal */
.custom-promotion-modal.active {
    display: flex;
}

/* Modal Box */
.custom-promotion-modal-content {
    position: relative;

    width: 440px;
    height: 720px;
    max-height: 85vh;

    background: #fff;
    border-radius: 8px;
    overflow: hidden;

    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
}

.custom-promotion-modal-content a {
	font-size: 0;
	display: block;
}

.custom-promotion-modal-content a img {
	max-width: 100%;
	height: auto;
}

/* Image */
.custom-promotion-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Close Button */
.custom-promotion-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;

    width: 36px;
    height: 36px;

    border: none;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.7);
    color: #fff;

    font-size: 24px;
    line-height: 1;
    cursor: pointer;

    z-index: 2;
}

.custom-promotion-modal-close:hover {
    opacity: 0.9;
}

/* Mobile */
@media (max-width: 480px) {
    .custom-promotion-modal-content {
        width: calc(100vw - 30px);
        height: auto;
        max-height: 85vh;
    }

    .custom-promotion-modal-image {
        height: auto;
        max-height: 85vh;
        object-fit: contain;
    }
}