/* ----------------------------
   POPUP STYLES
---------------------------- */

#popupOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#popupOverlay.visible {
    opacity: 1;
}

#popup {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 32px;
    position: relative;
    width: 30vw;
    height: 65vh;
    display: flex;
    align-items: center;
}

#popupCloseBtn {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.6;
    z-index: 10;
}

#popupCloseBtn:hover {
    opacity: 1;
}

#popupStrip {
    position: relative;
    width: 100%;
    height: 100%;
}

.popupCard {
    position: absolute;
    bottom: 0;
    width: 220px;
    height: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.25s ease;
    cursor: pointer;
}

.popupCard.visible {
    opacity: 1;
    transform: translateY(0);
}

.popupImg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    box-shadow: 4px 4px 20px rgba(0,0,0,0.6);
    transition: filter 0.2s ease;
    pointer-events: none;
}

/* ----------------------------
   EXPANDED IMAGE VIEW
---------------------------- */

#expandedView {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: zoom-out;
}

#expandedView.visible {
    opacity: 1;
}

#expandedImg {
    max-width: 85vw;
    max-height: 85vh;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 0 60px rgba(0,0,0,0.8);
}