﻿/*photo.cs
*/
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Grid columns adjust based on container width */
    gap: 16px; /* Space between grid items */
    padding: 16px; /* Padding around the grid */
}
h3.photo-title {
    font-size: 1rem; /* Adjust this size as needed */
    font-weight: normal;
    line-height: 1.2;
    margin: 0.5rem 0;
}

/*.photo-grid2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}*/
.photo-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.photo-item {
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 1px solid #ddd;
    border-radius: 4px;
    /*    overflow: hidden;*/
    width: 150px; /* Set a fixed width for the thumbnail */
    height: 150px; /* Set a fixed height for the thumbnail */
    background-color: #fff;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
/*.photo-item {
    cursor: pointer;
    transition: transform 0.3s ease;*/ /* Smooth scale effect on hover */
    /*border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background-color: #fff;*/ /* Background color for the photo items */
/*}*/
    .photo-item img.photo-thumbnail {
        width: 100%;
        height: 150px;
        object-fit: cover; /* Ensure the image covers the area without distorting */
        display: block;
    }

    .photo-item:hover {
        transform: scale(1.05); /* Slightly enlarge the item on hover */
    }

.photo-info {
    margin-top: 5px;
    text-align: center;
    font-size: 14px;
    padding: 10px;
    background-color: #f8f8f8;
}
/* Container for the photo grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Grid columns adjust based on container width */
    gap: 16px; /* Space between grid items */
    padding: 16px; /* Padding around the grid */
}

/* Individual photo items */


    /* Hover effect for photo items */
    /*.photo-item:hover {
        transform: scale(1.05);*/ /* Slightly enlarge the item on hover */
    /*}*/

    /* Thumbnail image styling */
    /*.photo-item img.photo-thumbnail {
        width: 100%;*/ /* Thumbnail fills the entire item */
        /*height: 150px;*/ /* Fixed height for all thumbnails */
        /*object-fit: cover;*/ /* Image covers the area without distorting */
        /*display: block;*/ /* Ensures the image behaves as a block element */
    /*}*/
.modal-content img {
    max-width: 85%; /* Slightly smaller than before */
    max-height: 70vh; /* Allow space for buttons and text */
    object-fit: contain;
    margin-bottom: 10px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent scrollbars */
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}
.modal-content {
    position: relative;
    background-color: #fff;
    margin: auto;
    padding: 10px;
    border: 1px solid #888;
    width: 100%;
    max-width: 700px; /* Reduced max-width */
    height: auto;
    max-height: 100%; /* Prevent overflowing the screen */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Ensure no scrollbars */
}

.modal-header {
    width: 100%;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
    text-align: center;
}

    .modal-header h2 {
        margin: 0;
        font-size: 20px;
        color: #333;
    }



.modal-controls {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    width: 90%;
}

    .modal-controls button {
        margin: 0 10px;
        padding: 10px 20px;
        background-color: #4CAF50;
        color: white;
        border: none;
        cursor: pointer;
        border-radius: 4px;
        font-size: 12px;
    }

        .modal-controls button:hover {
            background-color: #45a049;
        }

#modalInfo {
    margin-top: 5px;
    text-align: center;
    width: 100%;
    padding: 5px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

    #modalInfo p {
        margin: 4px 0;
        font-size: 14px;
    }
.photo-info {
    padding: 10px;
    background-color: #f9f9f9;
}

    .photo-info p {
        margin: 5px 0;
        font-size: 14px;
    }

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination-link {
    margin: 0 5px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    background-color: #f9f9f9;
}

    .pagination-link.active {
        background-color: #007bff;
        color: white;
    }
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

    .close:hover,
    .close:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }

#modalImage {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
}

.modal-controls {
    margin-top: 20px;
    text-align: center;
}

    .modal-controls button {
        margin: 0 10px;
        padding: 10px 20px;
        background-color: #007bff;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }

        .modal-controls button:hover {
            background-color: #0056b3;
        }
.loading-indicator {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #666;
}