/* Gallery page specific styles */
.page-container h1 {
    text-align: left;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-gallery-gap);
    justify-content: center;
    padding: var(--spacing-md) 0;
    max-width: 800px;
    width: 100%;
}

.gallery-image {
    width: 250px;
    height: 180px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-all);
    box-shadow: var(--shadow-md);
}

.focus-top {
    object-position: top;
}

.focus-slighly-lower-top {
    object-position: 50% 20%;
}

.gallery-image:hover {
    transform: scale(1.05) translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-opacity);
    z-index: var(--z-index-overlay);
    backdrop-filter: blur(4px);
}

.lightbox.show {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive gallery */
@media (max-width: 768px) {
    .gallery {
        gap: var(--spacing-sm);
        padding: var(--spacing-sm) 0;
    }
    
    .gallery-image {
        width: calc(50% - var(--spacing-sm));
        height: auto;
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 480px) {
    .gallery-image {
        width: 100%;
        max-width: 300px;
    }
}