.hidden
{
	display: none;
}

/* POPUP full màn hình - dùng flex để căn giữa chính xác */
.album-popup {
    display: none;                /* ẩn mặc định */
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(2px);
    justify-content: center;      /* căn giữa ngang */
    align-items: center;          /* căn giữa dọc */
    padding: 20px;
    overflow: auto;               /* cho trường hợp ảnh rất cao */
}

/* Ảnh lớn: block + margin auto để an toàn */
.album-popup-content {
    display: block;
    margin: auto;
    max-width: 95%;
    max-height: 90vh;
    width: auto;                  /* cho responsive */
    height: auto;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(255,255,255,0.12);
    object-fit: contain;          /* duy trì tỉ lệ, không bị cắt */
}

/* nút đóng */
.album-popup-close {
    position: absolute;
    top: 18px;
    right: 22px;
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    z-index: 100000;
    background: rgba(0,0,0,0.35);
    padding: 6px 10px;
    border-radius: 8px;
}

.album-popup-close:hover {
    color: #ffe6e6;
    background: rgba(0,0,0,0.55);
}

/* đảm bảo khi resize nhỏ: vẫn có khoảng cách */
@media (max-width: 576px) {
    .album-popup-content { max-height: 80vh; max-width: 95%; }
    .album-popup-close { top: 12px; right: 14px; font-size: 32px; }
}

/* Nền mờ toàn màn hình */
.common-popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(3px);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Khung popup */
.common-popup-inner {
    background-color: #898989;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 14px;
    padding: 30px 40px 25px;
    position: relative;
    backdrop-filter: blur(4px);
    max-width: 600px;
    width: fit-content;
    color: #fff;
    display: inline-block;
    animation: popupFadeIn 0.25s ease-out;
}

/* nút X */
.common-popup-close {
    position: absolute;
    top: -12px;
    right: -12px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    cursor: pointer;
    transition: 0.2s;
}

.common-popup-close:hover {
    background: rgba(255,255,255,0.35);
}

/* Khoảng QR đều nhau */
#commonPopupContent {
    display: flex;
    gap: 35px;
    justify-content: center;
}

#commonPopupContent p {
    margin-top: 10px;
    font-size: 14px;
}

/* Hiệu ứng hiện popup */
@keyframes popupFadeIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

/* Responsive khi mobile */
@media(max-width: 480px) {
    .common-popup-inner {
        padding: 25px 20px;
    }

    #commonPopupContent {
        flex-direction: column;
        gap: 25px;
    }

    #commonPopupContent img {
        width: 150px;
    }

    .common-popup-close {
        width: 34px;
        height: 34px;
        font-size: 24px;
    }
}
