/* gallery.css - For Gallery Categories/Albums Overview Page */
@import url("shared.css");

/* Page Spacing for Sticky Header */
.page-top-padding {
    height: 80px; /* Match header height */
    width: 100%;
}
@media (max-width: 768px) {
    .page-top-padding {
        height: 60px;
    }
}

/* Gallery Categories Hero Section */
.gallery-categories-hero-section {
    background-image: linear-gradient(rgba(43, 29, 20, 0.7), rgba(43, 29, 20, 0.7)); /* Background for this page's hero */
    background-size: cover;
    background-position: center;
    color: var(--color-text-light);
    text-align: center;
    padding: var(--spacing-xl) 0;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.3);
    margin-bottom: var(--spacing-xl);
}

.gallery-categories-hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-md);
}

.gallery-categories-hero-title {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    color: var(--color-accent-gold);
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
}

.gallery-categories-hero-text {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Gallery Categories Content Grid */
.gallery-categories-content {
    padding-top: var(--spacing-lg); /* Adjust spacing from hero */
    padding-bottom: var(--spacing-xl);
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid for category items */
    gap: var(--spacing-lg); /* Space between items */
    justify-content: center;
    padding: var(--spacing-sm);
}

/* Individual Category Item (Album Cover) */
.category-item {
    position: relative;
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    height: 300px; /* Fixed height for consistent album covers */
    display: flex; /* For centering content (if needed) */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.category-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crop to fit, maintain aspect ratio */
    display: block;
    transition: transform 0.4s ease;
}

.category-item:hover img {
    transform: scale(1.1);
}

/* Category Item Overlay */
.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(43, 29, 20, 0.8) 0%, rgba(43, 29, 20, 0) 60%); /* Dark gradient from bottom */
    color: var(--color-text-light);
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Push content to bottom */
    align-items: center;
    padding: var(--spacing-md) var(--spacing-sm);
    opacity: 0; /* Hidden by default */
    transition: opacity 0.4s ease;
}

.category-item:hover .category-overlay {
    opacity: 1; /* Show on hover */
}

.category-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-accent-gold); /* Accent color for title */
    margin-bottom: var(--spacing-xs);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.explore-icon {
    font-size: 2rem;
    color: var(--color-text-light);
    margin-top: var(--spacing-sm);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* No Categories Found Message */
.no-categories-found {
    grid-column: 1 / -1; /* Span across all columns */
    text-align: center;
    padding: var(--spacing-xl);
    font-size: 1.2rem;
    color: var(--color-text-dark);
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-light);
    margin-top: var(--spacing-lg);
}


/* Responsive Adjustments */
@media (max-width: 1024px) {
    .gallery-categories-hero-title { font-size: 3rem; }
    .gallery-categories-hero-text { font-size: 1.15rem; }
    .categories-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
    .category-item { height: 280px; }
    .category-title { font-size: 1.6rem; }
}

@media (max-width: 768px) {
    .gallery-categories-hero-section { padding: var(--spacing-lg) 0; }
    .gallery-categories-hero-title { font-size: 2.5rem; }
    .gallery-categories-hero-text { font-size: 1rem; }
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: var(--spacing-md);
        padding: var(--spacing-xs);
    }
    .category-item { height: 250px; }
    .category-title { font-size: 1.4rem; }
    .explore-icon { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .gallery-categories-hero-section { padding: var(--spacing-md) 0; }
    .gallery-categories-hero-title { font-size: 2rem; }
    .gallery-categories-hero-text { font-size: 0.9rem; }
    .categories-grid {
        grid-template-columns: 1fr; /* Single column on smallest screens */
        padding: 0;
    }
    .category-item {
        height: 220px;
        border-radius: var(--border-radius-md);
        margin: 0 var(--spacing-sm) var(--spacing-lg);
    }
    .category-title { font-size: 1.2rem; }
    .explore-icon { font-size: 1.5rem; }
}
