/* ==========================================================================
   PHOTOGRAPHY PAGE STYLES
   ========================================================================== */

.collections {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-xl) var(--space-md);
}

.collection {
    margin-bottom: calc(var(--space-xl) * 2);
}

.collection:last-child {
    margin-bottom: 0;
}

.collection__header {
    margin-bottom: var(--space-lg);
    text-align: center;
}

.collection__title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.collection__description {
    font-size: 1rem;
    color: var(--color-text-light);
    font-style: italic;
}

/* ==========================================================================
   GALLERY GRID - FULL ASPECT RATIO
   ========================================================================== */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-md);
}

.gallery__item {
    position: relative;
    /* REMOVED aspect-ratio to keep original proportions */
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
    background: var(--color-bg-alt);
}

.gallery__item img {
    width: 100%;
    height: auto;
    /* Changed from 100% to auto for natural height */
    display: block;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery__item:hover img {
    transform: scale(1.05);
    /* Reduced from 1.08 for subtlety */
}

/* Overlay on hover */
.gallery__item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background var(--transition);
    pointer-events: none;
}

.gallery__item:hover::after {
    background: rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   LIGHTBOX MODAL
   ========================================================================== */

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox__image {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    animation: zoomIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox__close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    padding: var(--space-sm);
    transition: var(--transition);
    z-index: 2001;
}

.lightbox__close:hover {
    color: var(--color-accent);
    transform: rotate(90deg);
}

.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    font-size: 2rem;
    padding: var(--space-md) var(--space-sm);
    cursor: pointer;
    transition: var(--transition);
    z-index: 2001;
}

.lightbox__prev:hover,
.lightbox__next:hover {
    background: rgba(139, 0, 0, 0.8);
}

.lightbox__prev {
    left: var(--space-md);
}

.lightbox__next {
    right: var(--space-md);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: var(--space-sm);
    }

    .collection__title {
        font-size: 2rem;
    }

    .lightbox__prev,
    .lightbox__next {
        font-size: 1.5rem;
        padding: var(--space-sm);
    }

    .lightbox__close {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
    }

    .collection__title {
        font-size: 1.75rem;
    }

    .lightbox__prev {
        left: var(--space-xs);
    }

    .lightbox__next {
        right: var(--space-xs);
    }
}
