/* STYLES FOR GALLERY PAGE (gallery-style.css)
  ======================================================
  - Contains all custom styles from your file.
  - Contains styles for the hero header and breadcrumbs.
*/

/* Hero Header (from inline style and dynamic CSS) */
.sabbi-page-header {
    background-image: url(https://images.ctfassets.net/mwqtes8188we/4bQjPYzMWsi2wLpVFIdhUK/36bfe8471455ec4ff094fd2ae2fd0a07/article_7-of-the-best-large-event-spaces_body-image-13.jpg);
    background-color: #333; /* Fallback */
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 100px 0;
    position: relative;
    text-align: center;
}

.sabbi-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.sabbi-page-header .page-title {
    color: #ffffff;
    font-family: Montserrat, sans-serif;
    line-height: 40px;
    font-weight: 700;
    font-size: 28px;
    margin: 0;
}

/* Breadcrumbs (from dynamic CSS) */
.auth-breadcrumb-wrap {
    background-color: #EDF2F6;
    font-family: "Open Sans", sans-serif;
}
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}
.breadcrumb {
    padding-top: 8px;
    padding-right: 15px;
    padding-bottom: 8px;
    padding-left: 15px;
    margin: 0;
    list-style: none;
    display: flex;
    justify-content: center;
}
.sabbi-breadcrumb {
    color: #000000;
}
.sabbi-breadcrumb li {
    display: inline-block;
}
.sabbi-breadcrumb li a {
    color: #000000;
    text-decoration: none;
}
.sabbi-breadcrumb li a:hover {
    color: #DB3243;
}
.sabbi-breadcrumb > li > span.separator {
    color: #000;
    margin: 0 8px;
}

/* Page Content Styles */
:root {
    --primary-color: #DB3243;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
    color: #333;
    /* This pushes all content down to prevent overlap
      with a sticky/fixed header.
    */
    padding-top: 80px; 
}

/* NEW: Main content wrapper */
.gallery-main-content {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1rem;
}


/* Filter Panel */
.filter-panel-0002 {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.search-container-0002 {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.search-input-0002 {
    width: 100%;
    padding: 12px 20px;
    padding-right: 40px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-input-0002:focus {
    outline: none;
    border-color: var(--primary-color);
}

.clear-button-0002 {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    transition: color 0.3s ease;
}

.clear-button-0002:hover {
    color: var(--primary-color);
}

.year-filter-0002 {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap; /* Allow filters to wrap on small screens */
}

.year-select-0002 {
    padding: 10px 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    background: white;
    color: #333;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.year-select-0002:focus {
    outline: none;
    border-color: var(--primary-color);
}

.clear-filters-0002 {
    padding: 10px 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    background: white;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.clear-filters-0002:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Gallery Grid */
.gallery-container-0002 {
    width: 100%;
}

.gallery-grid-0002 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    /* padding: 20px; */ /* Padding is now on the main container */
}

.gallery-item-0002 {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    background: white;
}

.gallery-item-0002:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(219, 50, 67, 0.2);
}

.gallery-image-0002 {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.gallery-item-0002:hover .gallery-image-0002 {
    transform: scale(1.1);
}

.gallery-content-0002 {
    padding: 15px;
}

.gallery-title-0002 {
    font-size: 1.1rem; /* Slightly smaller */
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    font-family: Montserrat, sans-serif;
    /* Truncate long titles */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-description-0002 {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 8px;
    /* Truncate long descriptions */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-year-0002 {
    display: inline-block;
    padding: 4px 10px;
    background: var(--primary-color);
    color: white;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Responsive Grid */
@media (max-width: 1200px) {
    .gallery-grid-0002 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-main-content {
        margin: 1rem auto;
    }
    .gallery-grid-0002 {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .filter-panel-0002 {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .gallery-main-content {
        margin: 1rem;
        padding: 0;
    }
    .gallery-grid-0002 {
        grid-template-columns: 1fr;
    }
}

/* Animation classes */
.fade-in-0002 {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}