/* Photo Modal/Lightbox */
.photo-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.photo-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    animation: zoomIn 0.3s;
    border-radius: 8px;
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
    }

    to {
        transform: scale(1);
    }
}

.photo-modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ffffff;
    padding: 20px 0;
    font-size: 18px;
    font-weight: 500;
}

.photo-modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #ffffff;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 100000;
    background: rgba(255, 194, 0, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.photo-modal-close:hover,
.photo-modal-close:focus {
    color: #ffc200;
    background: rgba(255, 194, 0, 0.4);
    transform: rotate(90deg);
}

.photo-modal-prev,
.photo-modal-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.3s ease;
    border-radius: 0 8px 8px 0;
    user-select: none;
    background-color: rgba(255, 194, 0, 0.3);
    z-index: 100000;
}

.photo-modal-next {
    right: 0;
    border-radius: 8px 0 0 8px;
}

.photo-modal-prev {
    left: 0;
}

.photo-modal-prev:hover,
.photo-modal-next:hover {
    background-color: rgba(255, 194, 0, 0.8);
    color: #ffffff;
}

@media (max-width: 768px) {
    .photo-modal-content {
        max-width: 95%;
        max-height: 80vh;
    }

    .photo-modal-close {
        top: 10px;
        right: 20px;
        font-size: 35px;
        width: 45px;
        height: 45px;
    }

    .photo-modal-prev,
    .photo-modal-next {
        font-size: 30px;
        padding: 12px;
    }

    .photo-modal-caption {
        font-size: 14px;
        padding: 15px 0;
    }
}