/* ------------------------------------------------------------------
   Gallery filters (category buttons + year dropdown) and Isotope grid
   Used by: gallery.php, photo-gallery.php, co-curricular-activities.php
   ------------------------------------------------------------------ */

.list-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 15px 25px;
    margin-bottom: 30px;
    padding-top: 20px;
}

/* Category buttons */
.gallery-category-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.gallery-category-filter button {
    padding: 8px 20px;
    border: 2px solid #069748;
    border-radius: 25px;
    background: #fff;
    color: #069748;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.gallery-category-filter button:hover,
.gallery-category-filter button.active {
    background: #069748;
    color: #fff;
}

/* Year dropdown: green pill with calendar icon + chevron */
.year-select {
    position: relative;
    display: inline-flex;
    align-items: center;
    border-radius: 45px;
    background: #01964a;
    background: linear-gradient(to right, #01964a 0, #23a03e 45%, #64af2e 100%);
    box-shadow: 0 6px 16px rgba(1, 150, 74, .25);
    transition: box-shadow .2s, transform .2s;
}

.year-select:hover {
    box-shadow: 0 8px 20px rgba(1, 150, 74, .35);
    transform: translateY(-1px);
}

.year-select::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") no-repeat center / contain;
}

.year-select::after {
    content: '';
    position: absolute;
    right: 18px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    pointer-events: none;
}

.year-select select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-width: 170px;
    margin: 0;
    padding: 10px 46px 10px 44px;
    border: 0;
    border-radius: 45px;
    background: transparent;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    outline: none;
}

.year-select select:focus-visible {
    box-shadow: 0 0 0 3px #f7de1b;
}

.year-select select::-ms-expand {
    display: none;
}

.year-select select option {
    color: #222;
    background: #fff;
    font-weight: 500;
}

.list-filter-empty {
    text-align: center;
    padding: 30px 0;
}

/* Isotope grid: mirrors the site's .galleryitem widths (style.css / responsive.css) */
.gallery-box-blk .awardblk.gallery-isotope {
    display: block;
}

.gallery-isotope .gutter-sizer {
    width: 3.5%;
}

.gallery-isotope .galleryitem {
    width: 31%;
    cursor: pointer;
}

/* Co-curricular tabs (in-page, same look as the gallery tabs) */
.cocurricular-tab-blk .submenu-list li a {
    cursor: pointer;
}

.album-count {
    font-size: 13px;
    opacity: .85;
}

@media (max-width:800px) {
    .gallery-isotope .gutter-sizer {
        width: 4%;
    }

    .gallery-isotope .galleryitem {
        width: 48%;
    }
}

@media (max-width:600px) {
    .gallery-box-blk .awardblk.gallery-isotope {
        padding: 0 10%;
    }

    .gallery-isotope .gutter-sizer {
        width: 0;
    }

    .gallery-box-blk .gallery-isotope .galleryitem {
        width: 100%;
        margin: 0 0 50px;
    }

    .year-select,
    .year-select select {
        width: 100%;
    }
}

@media (max-width:500px) {
    .gallery-box-blk .awardblk.gallery-isotope {
        padding: 0 2.5%;
    }
}
