/* ========================================= */
/* Gallery & Lightbox Styles        */
/* ========================================= */

.page-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-container h1 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 10px;
    color: var(--primary-orange, #D35400);
}

.page-container p {
    text-align: center;
    font-size: 1.1em;
    color: var(--text-light, #555);
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.gallery-item {
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #f9f9f9;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

#lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 20px;
    box-sizing: border-box;
}

#lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    box-shadow: 0 0 25px rgba(0,0,0,0.5);
    border: 3px solid white;
    border-radius: 4px;
    cursor: default;
}

#lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.2s ease;
}
#lightbox-close:hover {
    color: #ccc;
}