﻿/*2026-07-09 17:36*/

/* The semi-transparent background overlay */
.popup-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Darkens the background page */
    z-index: 1000; /* Ensures it sits on top of everything else */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    /* When this class is added via JS, the popup fades in */
    .popup-overlay.active {
        display: flex;
        opacity: 1;
    }

/* The box containing the image and close button */
.popup-content {
    position: relative;

    /* CHANGE THESE: Increase from 90%/80% to 95%/95% */
    max-width: 95%;
    max-height: 95%;

    background: #fff;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

/* The actual image inside the popup */
.popup-content img {
    display: block;
    width: 100%; /* Forces the image to stretch to the maximum width of the container */
    max-width: 100%;

  /* CHANGE THIS: Increase from 75vh to 90vh (Viewport Height) */
  max-height: 90vh;
  height: auto;
  object-fit: contain; /* Ensures the image doesn't distort or stretch weirdly */
}

/* The Close 'X' button */
.close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #333;
    color: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 28px;
    font-size: 20px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

    .close-btn:hover {
        background: #000;
    }