/* Photos Gallery Styles */
.photos-gallery {
    padding: 2rem 0;
    max-width: 1400px;
    margin: 0 auto;
}

.photos-gallery h2 {
    margin-bottom: 2rem;
    padding: 0 2rem;
}

.photos-grid {
    columns: 4;
    column-gap: 1.2rem;
    padding: 0 2rem;
}

.photo-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: 0 4px 15px var(--shadow-color);
    margin-bottom: 1.2rem;
    break-inside: avoid;
    border: 1px solid var(--text-color);
}

.photo-item:nth-child(3n) {
    margin-top: 0.5rem;
}

.photo-item:nth-child(4n) {
    margin-top: -0.5rem;
}

.photo-item:nth-child(5n) img {
    aspect-ratio: 0.8;
}

.photo-item:nth-child(3n) img {
    aspect-ratio: 1.2;
}

.photo-item:nth-child(4n) img {
    aspect-ratio: 0.9;
}

.photo-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    object-fit: cover;
    aspect-ratio: 1;
}

.photo-item:hover img {
    transform: scale(1.05);
}

.photo-description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8) 30%);
    padding: 1.5rem;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.photo-item:hover .photo-description {
    transform: translateY(0);
}

.photo-description p {
    font-size: 1rem;
    line-height: 1.4;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* Dark theme adjustments */
[data-theme="dark"] .photo-item {
    border-color: #ffffff7c;
}

[data-theme="light"] .photo-item {
    border-color: #000000;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .photos-grid {
        columns: 3;
    }
}

@media (max-width: 768px) {
    .photos-grid {
        columns: 2;
        column-gap: 1rem;
        padding: 0 1rem;
    }

    .photo-description {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .photos-grid {
        columns: 1;
        column-gap: 0.8rem;
    }

    .photo-description {
        padding: 1rem;
    }
}

/* Active nav link */
.nav-links a.active {
    color: var(--text-color);
    font-weight: 500;
    text-decoration: underline;
} 