/* ==========================================================================
   PHOTOGRAPHY DASHBOARD STYLES (Netflix-Style)
   ========================================================================== */

.photography-dashboard {
    padding-bottom: 4rem;
}

/* Category Row */
.photo-category-row {
    margin-bottom: 3rem;
    position: relative;
    padding-left: max(2rem, calc((100% - 1200px) / 2)); /* Align with container but allow edge bleeding */
}

/* Header with Link */
.photo-category-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-right: 2rem;
}

.photo-category-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s ease;
}

.photo-category-title:hover {
    color: var(--text-secondary);
}

.photo-category-view-all {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.photo-category-header:hover .photo-category-view-all {
    opacity: 1;
    transform: translateX(0);
}

.photo-category-view-all:hover {
    text-decoration: underline;
}

/* Horizontal Scroll Container */
.photo-scroll-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 1rem; /* Space for scrollbar */
    padding-right: 2rem; /* Right padding for the last item */

    /* Hide scrollbar for a cleaner look, but keep functionality */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.photo-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* Individual Image Card */
.photo-card {
    flex: 0 0 auto;
    width: 300px;
    height: 400px;
    scroll-snap-align: start;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--bg-card);
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .photo-card {
        width: 240px;
        height: 320px;
    }

    .photo-category-row {
        padding-left: 1rem;
    }

    .photo-category-header {
        padding-right: 1rem;
    }

    .photo-scroll-container {
        padding-right: 1rem;
    }

    .photo-category-view-all {
        opacity: 1;
        transform: translateX(0);
    }
}

.photo-card:hover {
    transform: scale(1.02);
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.photo-card:hover img {
    opacity: 0.9;
}

/* Lightbox Styles (Reused/Adapted) */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 1001;
}

.lightbox-close:hover {
    color: #ccc;
}