/* Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.photo-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--surface);
    border-radius: 4px;
}

.photo-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-item:hover img {
    transform: scale(1.05);
}

/* Single Photo View */
.photo-post {
    max-width: 1200px;
    margin: 0 auto;
}

.photo-container {
    margin-bottom: 2rem;
}

.photo-container img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.photo-caption {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.photo-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.photo-footer {
    padding-top: 2rem;
    margin-top: 2rem;
    background: none;
    border: none;
    box-shadow: none;
}

/* Match blog back-link styling */
.photo-footer .back-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.photo-footer .back-link:hover {
    color: var(--accent);
    background: rgba(208, 208, 208, 0.05);
    border: 1px solid var(--accent);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.5rem;
    }
}