/* CSS for Home Popup */
.home-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    /* Flex to center */
    justify-content: center;
    align-items: center;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.home-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.home-popup-content {
    position: relative;
    background: transparent;
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.home-popup-overlay.show .home-popup-content {
    transform: scale(1);
}

.home-popup-content img {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    /* Limit height */
    width: auto;
    height: auto;
    object-fit: contain;
}

.home-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background 0.2s;
    z-index: 10;
    border: none;
    outline: none;
}

.home-popup-close:hover {
    background: #fff;
    color: #000;
}

@media (max-width: 600px) {
    .home-popup-content {
        max-width: 95%;
    }

    .home-popup-content img {
        max-height: 70vh;
    }
}