:root {
    --brand: #005daa;
    --accent: #2ec4a6;
    --ink: #0f172a;
    --muted: #64748b;
    --bg: #f8fafc;
    --card: #ffffff;
    --radius: 16px;
    --shadow: 0 8px 24px rgba(0,0,0,.1);
}
body { margin: 0; font-family: 'Inter', sans-serif; background: var(--bg); color: var(--ink); }
.alumni-gallery .gallery-head { text-align: center; padding: 60px 18px 30px; }
.alumni-gallery .gallery-head h1 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 12px; }
.alumni-gallery .gallery-head p { font-size: 1rem; color: var(--muted); }

.alumni-gallery .search-bar { text-align: center; margin-bottom: 20px; padding: 0 18px; }
.alumni-gallery .search-bar input { padding: 10px 20px; width: 200px; max-width: 70%; border: 2px solid var(--brand); border-radius: var(--radius); font-size: 1em; transition: border-color .3s; }
.alumni-gallery .search-bar input:focus { border-color: var(--accent); outline: none; }
.alumni-gallery .advanced-filters { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin-bottom: 20px; }
.alumni-gallery .advanced-filters select,
.alumni-gallery .advanced-filters input[type="date"],
.alumni-gallery .advanced-filters input[type="time"] {
    padding: 8px 12px; border: 2px solid var(--brand); border-radius: var(--radius);
    font-size: 0.9em; background: var(--card); transition: border-color .3s;
}
.alumni-gallery .advanced-filters select:focus,
.alumni-gallery .advanced-filters input:focus { border-color: var(--accent); outline: none; }

.alumni-gallery .filter-bar { text-align: center; margin-bottom: 40px; }
.alumni-gallery .filter-bar button {
    display: inline-block; margin: 6px; padding: 10px 24px; border: none;
    background: var(--brand); color: #fff; font-weight: 600; border-radius: var(--radius);
    cursor: pointer; transition: background .3s, transform .2s;
}
.alumni-gallery .filter-bar button:hover,
.alumni-gallery .filter-bar button.active { background: var(--accent); transform: translateY(-2px); }

.alumni-gallery .carousel { position: relative; max-width: 1180px; margin: 0 auto 60px; overflow: hidden; }
.alumni-gallery .carousel-container { display: flex; transition: transform 0.5s ease; }
.alumni-gallery .carousel-item {
    min-width: 260px; background: var(--card); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow); margin: 0 12px; position: relative; touch-action: manipulation;
}
.alumni-gallery .carousel-item img { width: 100%; height: auto; object-fit: cover; transition: transform 0.4s ease; }
.alumni-gallery .carousel-item p {
    position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,.55);
    color: #fff; font-size: .9rem; padding: 8px 12px; margin: 0; text-align: center;
}
.alumni-gallery .carousel-item:hover img,
.alumni-gallery .carousel-item.tapped img { transform: scale(1.05); }
.alumni-gallery .carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5); color: white; border: none; padding: 10px; cursor: pointer;
    font-size: 1.5em; z-index: 10;
}
.alumni-gallery .prev-btn { left: 10px; }
.alumni-gallery .next-btn { right: 10px; }

.alumni-gallery .lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.8); display: flex; align-items: center; justify-content: center; visibility: hidden; opacity: 0; transition: opacity .3s ease; z-index: 999; }
.alumni-gallery .lightbox.active { visibility: visible; opacity: 1; }
.alumni-gallery .lightbox img { max-width: 90%; max-height: 85%; border-radius: var(--radius); box-shadow: 0 0 20px rgba(0,0,0,.5); }
.alumni-gallery .lightbox span { position: absolute; top: 20px; right: 40px; font-size: 2rem; color: #fff; cursor: pointer; }

@media (max-width: 768px) {
    .alumni-gallery .gallery-head h1 { font-size: 1.5em; }
    .alumni-gallery .gallery-head p { font-size: 0.9em; }
    .alumni-gallery .search-bar input { width: 90%; }
    .alumni-gallery .advanced-filters { flex-direction: column; align-items: center; }
    .alumni-gallery .advanced-filters select, .alumni-gallery .advanced-filters input { width: 90%; margin-bottom: 10px; }
    .alumni-gallery .filter-bar button { font-size: 0.9em; padding: 8px 15px; margin: 3px; }
    .alumni-gallery .carousel { max-width: 100%; }
    .alumni-gallery .carousel-item { min-width: 100%; margin: 0; }
    .alumni-gallery .carousel-btn { font-size: 1.2em; padding: 8px; }
}
