/* Photos Page Styles */
.nav_logo {
    background: black !important;
    backdrop-filter: none !important;
}

a[href$="/Photos"] {
    color: var(--titletext);
}

.title {
    width: 100%;
    height: 1px;
    text-align: center;
    font-weight: 700;
    font-size: 64px;
    color: var(--titletext);
    line-height: 64px;
    height: fit-content;
    align-items: center;
    letter-spacing: 0.04em;
}

/* Styles for the delete confirmation popup */
.delete-confirmation {
    display: none; /* Hidden by default */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 25px; /* Increased padding */
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 10000; /* Ensure it's on top */
    border-radius: 8px;
    text-align: center;
    min-width: 300px; /* Ensure it's not too small */
    color: #333; /* Darker text for readability */
}

.delete-confirmation p {
    margin-bottom: 20px; /* More space below text */
    font-size: 18px; /* Slightly larger font */
    line-height: 1.4;
}

.delete-confirmation .confirmation-buttons button,
.delete-confirmation .confirmation-buttons a { /* Target buttons/links inside a specific div */
    padding: 10px 20px; /* Larger buttons */
    margin: 0 10px;
    border-radius: 5px; /* Softer radius */
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.delete-confirmation .confirmation-buttons button { /* Specifically for the CANCEL button */
    background-color: #6c757d;
    color: white;
    border: none;
}
.delete-confirmation .confirmation-buttons button:hover {
    background-color: #5a6268;
}

.delete-confirmation .confirmation-buttons a.delete-button-confirm { /* For the actual DELETE link in popup */
    background-color: #d9534f;
    color: white;
    display: inline-block;
}
.delete-confirmation .confirmation-buttons a.delete-button-confirm:hover {
    background-color: #c9302c;
}

/* General page container styles */
.container img:hover {
    filter: brightness(0.5);
    transition: 0.2s;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 5px;
    transition: 0.2s;
}

figure {
    margin: 0;
    display: grid;
    grid-template-rows: 1fr auto;
    margin-bottom: 10px;
    break-inside: avoid;
}

    figure > img {
        grid-row: 1 / -1;
        grid-column: 1;
    }

    figure a {
        color: black;
        text-decoration: none;
    }

figcaption {
    grid-row: 2;
    grid-column: 1;
    background-color: rgba(255,255,255,.5);
    padding: .2em .5em;
    justify-self: start;
}

.container {
    column-count: 6;
    column-gap: 10px;
    padding: 5px;
}

@media (max-width: 1000px) {
    .container {
        column-count: 3;
    }
}

.RenderBody {
    width: 90% !important;
}

@media (max-width: 500px) {

    .container {
        column-count: 2;
    }
}

@media (max-width: 360px) {
    .container {
        column-count: 1;
    }

    .RenderBody {
        width: 100% !important;
    }

    .container img {
        width: 100%;
    }
}

/* Modal CSS */
.modal {
    display: none;
    position: fixed;
    z-index: 9999; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center; 
    justify-content: center;
}

.modal-content {
    margin: auto; 
    display: block; 
    max-width: 90%;
    max-height: 90%;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--titletext);
    margin-top: 120px;
    background-color: rgba(0, 0, 0, 0.5);
    height: 50px;
    width: 50px;
    text-align: center;
    line-height: 50px; 
    border-radius: 500px;
    font-size: 30px; 
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

    .close:hover,
    .close:focus {
        color: #bbb;
        background-color: rgba(0,0,0,0.7);
        text-decoration: none;
        cursor: pointer;
    }
