﻿.photo-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

#photoModalImage {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease; /* Smooth transitions for zoom and rotation */

    max-height: 80vh;
    margin: 0 auto;
}

.zoom-controls {
    position: absolute;
    top: 10px;
    right: 10px;
}

.modal-body {
    text-align: center;
    position: relative;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
}

#photoCaption, #photoDescription {
    margin-top: 15px;
}

@media (max-width: 576px) {
    .modal-dialog {
        max-width: 95%;
        margin: 10px auto;
    }
}

.modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.5); /* Black background with transparency */
    z-index: 1050 !important; /* Ensure the modal is on top */
}

.modal-dialog {
    position: relative;
    max-width: 90%; /* Adjust the width */
    margin: 1.75rem auto; /* Center the modal */
    pointer-events: none;
}

.modal-content {
    position: relative;
    background-color: #fff;
    border: 1px solid #999;
    border-radius: 0.3rem;
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    padding: 1.5rem;
}

.close {
    font-size: 1.5rem;
    color: #000;
    opacity: 0.5;
}

    .close:hover {
        color: #000;
        opacity: 0.75;
    }
.modal-footer .btn-group .btn {
    margin: 0 5px;
}
/* Table and Modal Styles */
.cursor-pointer {
    cursor: pointer;
}

    .cursor-pointer:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }

.modal-header .close {
    margin: -1rem -1rem -1rem auto;
}

/*.photo-container {
    max-height: 70vh;
    overflow: hidden;
}*/
.photo-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

#photoModalImage {
    max-height: 65vh;
    object-fit: contain;
}

.zoom-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.8);
    padding: 5px;
    border-radius: 4px;
}

#photoCounter {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.8);
    padding: 5px;
    border-radius: 4px;
}

/* Toast Styles */
.toast {
    background-color: white;
    opacity: 1 !important;
}

.toast-container {
    z-index: 1056;
}

.modal-image-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
}