﻿.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
}

.popup-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: transparent;
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Desktop styles (default) */
@media screen and (min-width: 768px) {
    .popup-content {
        width: auto;
        height: 80vh; /* 80% of viewport height on desktop */
        aspect-ratio: 1/1; /* Maintain square aspect ratio */
    }
}

/* Mobile styles */
@media screen and (max-width: 767px) {
    .popup-content {
        width: 80vw; /* 80% of viewport width on mobile */
        height: auto;
        aspect-ratio: 1/1; /* Maintain square aspect ratio */
    }
}

.popup-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
}

.close-button {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 30px;
    height: 30px;
    background-color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    line-height: 1;
    z-index: 1002;
}

.close-button:hover {
    background-color: #f0f0f0;
}

.popup-link {
    display: block;
    width: 100%;
    height: 100%;
} 