.hide {
    display: none;
}

#loader {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    border: 8px solid #f3f3f3;
    border-top: 8px solid #00c2ff;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Popup Modal */
.image-popup {
    display: none;
    position: fixed;
    z-index: 999;
    padding: 20px 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.image-popup-content {
    margin: auto;
    display: block;
    width: 80%;
    /*max-width: 700px;*/
}

.image-popup-caption {
    margin: auto;
    display: block;
    width: 80%;
    text-align: center;
    color: #ccc;
    /*max-width: 700px;*/
    /*padding: 10px 0;*/
}

.image-popup-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.image-popup-close:hover,
.image-popup-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Modal Navigation Buttons */
#prev-image, #next-image {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0 1rem;
    user-select: none;
    transition: background-color 0.3s;
}

#prev-image {
    left: 10px;
}

#next-image {
    right: 10px;
}

#prev-image:hover, #next-image:hover {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}


