﻿/* =============================================
   IMC EVENTS GALLERY
   ============================================= */

/* HERO SECTION */
.ev-hero {
    position: relative;
    height: 50vh;
    min-height: 380px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -15px -15px 0 -15px;
}
.ev-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #01153e 0%, #0a1f44 40%, #0d2a5c 100%);
    z-index: 0;
}
.ev-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(197,165,90,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(197,165,90,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(255,255,255,0.03) 0%, transparent 50%);
}
.ev-hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(13,42,92,0.6), transparent);
    z-index: 1;
}
.ev-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}
.ev-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(197,165,90,0.15);
    border: 1px solid rgba(197,165,90,0.3);
    color: #c5a55a;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 20px;
    animation: evFadeDown 0.8s ease 0.2s both;
}
.ev-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
    line-height: 1.15;
    animation: evFadeDown 0.8s ease 0.4s both;
}
.ev-gold {
    background: linear-gradient(135deg, #c5a55a, #e8d5a3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.ev-hero-sub {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 300;
    color: rgba(255,255,255,0.7);
    max-width: 560px;
    margin: 0 auto 30px;
    line-height: 1.6;
    animation: evFadeDown 0.8s ease 0.6s both;
}
.ev-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    animation: evFadeDown 0.8s ease 0.8s both;
}
.ev-stat { text-align: center; }
.ev-stat-num {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 900;
    color: #c5a55a;
}
.ev-stat-label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.ev-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.15);
}

@keyframes evFadeDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* FILTER BAR */
.ev-filter-wrapper {
    padding: 24px 0;
    position: sticky;
    top: 56px;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(1,21,62,0.06);
    box-shadow: 0 4px 20px rgba(1,21,62,0.04);
}
.ev-filter-bar {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.ev-filter-btn {
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #01153e;
    background: transparent;
    border: 1px solid rgba(1,21,62,0.1);
    border-radius: 24px;
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.02em;
}
.ev-filter-btn:hover {
    border-color: #c5a55a;
    color: #c5a55a;
    transform: translateY(-1px);
}
.ev-filter-btn.active {
    background: linear-gradient(135deg, #01153e, #0a1f44);
    color: #c5a55a;
    border-color: #01153e;
    box-shadow: 0 4px 16px rgba(1,21,62,0.2);
}

/* GALLERY WRAP */
.ev-gallery-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0 60px;
}

/* YEAR SECTION */
.ev-year-section {
    margin-bottom: 0;
}

/* YEAR HEADER - Enlarged Horizontal */
.ev-year-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.ev-year-section.ev-revealed .ev-year-header {
    opacity: 1;
    transform: translateX(0);
}
.ev-year-num {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 900;
    color: #01153e;
    line-height: 1;
    letter-spacing: -0.03em;
    white-space: nowrap;
    background: linear-gradient(135deg, #01153e, #0d2a5c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.ev-year-line {
    flex: 1;
    height: 3px;
    background: linear-gradient(to right, #c5a55a, rgba(197,165,90,0.1));
    border-radius: 2px;
}

/* YEAR DIVIDER - Golden Line Between Years */
.ev-year-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #c5a55a 20%, #c5a55a 80%, transparent);
    margin: 40px 0;
}

/* GRID - All images same size */
.ev-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* GALLERY ITEM */
.ev-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    background: #e8eaed;
    opacity: 0;
    transform: translateY(30px) scale(0.97);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.ev-item.ev-revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.ev-item > a {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.ev-item > a:first-child {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}
.ev-item > a:first-child img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.ev-item:hover > a:first-child img {
    transform: scale(1.08);
}

/* OVERLAY */
.ev-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(1,21,62,0.92) 0%, rgba(1,21,62,0.4) 40%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 18px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}
.ev-item:hover .ev-overlay {
    opacity: 1;
}
.ev-overlay-inner {
    transform: translateY(10px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.ev-item:hover .ev-overlay-inner {
    transform: translateY(0);
}
.ev-overlay-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c5a55a, #e8d5a3);
    color: #01153e;
    font-size: 0.8rem;
    margin-bottom: 8px;
    transform: scale(0.7);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s;
}
.ev-item:hover .ev-overlay-icon {
    transform: scale(1);
}
.ev-overlay-title {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 3px;
}
.ev-overlay-count {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    color: #c5a55a;
    letter-spacing: 0.04em;
}

/* HOVER LIFT */
.ev-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    pointer-events: none;
    z-index: 3;
}
.ev-item:hover::after {
    border-color: rgba(197,165,90,0.4);
}
.ev-item:hover {
    box-shadow: 0 16px 40px rgba(1,21,62,0.12), 0 0 20px rgba(197,165,90,0.06);
}

/* BAGUETTEBOX LIGHTBOX WOW EFFECTS */
.baguetteBox-button {
    background: transparent !important;
    backdrop-filter: none !important;
    border-radius: 0 !important;
    width: 50px !important;
    height: 50px !important;
    border: none !important;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    animation: none !important;
}
.baguetteBox-button:hover {
    background: transparent !important;
    border: none !important;
    transform: scale(1.25) !important;
    box-shadow: none !important;
    animation: none !important;
}
.baguetteBox-button:hover svg polyline {
    stroke: #c5a55a !important;
    stroke-width: 3.5 !important;
    filter: drop-shadow(0 0 8px rgba(197,165,90,0.6));
}
.baguetteBox-button::before,
.baguetteBox-button::after {
    background: rgba(255,255,255,0.6) !important;
    transition: all 0.3s !important;
    border-radius: 2px !important;
    width: 3px !important;
}
.baguetteBox-button:hover::before,
.baguetteBox-button:hover::after {
    background: #c5a55a !important;
}

/* LIGHTBOX OVERLAY */
#baguetteBox-overlay {
    background: rgba(1,21,62,0.92) !important;
    backdrop-filter: blur(20px) !important;
    animation: lbOverlayIn 0.4s ease both !important;
}
@keyframes lbOverlayIn {
    from { opacity: 0; backdrop-filter: blur(0px); }
    to { opacity: 1; backdrop-filter: blur(20px); }
}

/* LIGHTBOX IMAGE CONTAINER */
.baguetteBox-slider {
    overflow: visible !important;
}
.baguetteBox-slider img {
    animation: lbImageIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both !important;
    filter: drop-shadow(0 10px 40px rgba(0,0,0,0.5)) !important;
    border-radius: 8px !important;
    transition: filter 0.4s ease !important;
}
.baguetteBox-slider img:hover {
    filter: drop-shadow(0 10px 50px rgba(197,165,90,0.3)) !important;
}
@keyframes lbImageIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* SLIDE TRANSITIONS */
.baguetteBox-slider .slideIn-left {
    animation: lbSlideLeft 0.45s cubic-bezier(0.4, 0, 0.2, 1) both !important;
}
.baguetteBox-slider .slideIn-right {
    animation: lbSlideRight 0.45s cubic-bezier(0.4, 0, 0.2, 1) both !important;
}
@keyframes lbSlideLeft {
    from { opacity: 0; transform: translateX(60px) scale(0.95); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes lbSlideRight {
    from { opacity: 0; transform: translateX(-60px) scale(0.95); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

/* FIGCAPTION */
figure figcaption {
    font-family: 'Outfit', sans-serif !important;
    background: linear-gradient(to top, rgba(1,21,62,0.85) 0%, transparent 100%) !important;
    padding: 20px 24px 16px !important;
    border-radius: 0 0 8px 8px !important;
    animation: lbCaptionIn 0.5s ease 0.2s both !important;
}
@keyframes lbCaptionIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* CLOSE BUTTON */
.baguetteBox-button[aria-label="Close"]::before,
.baguetteBox-button[aria-label="Close"]::after {
    background: rgba(255,255,255,0.6) !important;
    border-radius: 2px !important;
}
.baguetteBox-button[aria-label="Close"]:hover::before,
.baguetteBox-button[aria-label="Close"]:hover::after {
    background: #e74c3c !important;
}

/* SWIPE HINT ON MOBILE */
@media (max-width: 767px) {
    .baguetteBox-button { width: 40px !important; height: 40px !important; }
    .baguetteBox-button svg { width: 34px !important; height: 48px !important; }
}

/* IMAGE COUNTER BADGE */
.ev-counter-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(1,21,62,0.75);
    backdrop-filter: blur(6px);
    color: #c5a55a;
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(197,165,90,0.25);
    opacity: 0;
    transform: translateY(-6px);
    transition: all 0.3s ease;
}
.ev-item:hover .ev-counter-badge {
    opacity: 1;
    transform: translateY(0);
}

/* NAV ARROWS */
.ev-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(1,21,62,0.7);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(197,165,90,0.3);
    color: #c5a55a;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}
.ev-item:hover .ev-nav {
    opacity: 1;
    pointer-events: auto;
}
.ev-nav:hover {
    background: linear-gradient(135deg, #c5a55a, #e8d5a3);
    color: #01153e;
    transform: translateY(-50%) scale(1.1);
}
.ev-nav-prev { left: 8px; }
.ev-nav-next { right: 8px; }

/* IMAGE DOT INDICATORS */
.ev-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.ev-item:hover .ev-dots {
    opacity: 1;
}
.ev-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    transition: all 0.3s ease;
    cursor: pointer;
}
.ev-dot.active {
    background: #c5a55a;
    width: 14px;
    border-radius: 3px;
}

/* COMING SOON CARD */
.ev-coming-soon {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    border-radius: 16px;
    border: 2px dashed rgba(197,165,90,0.3);
    background: linear-gradient(135deg, rgba(1,21,62,0.03), rgba(197,165,90,0.05));
    opacity: 1 !important;
    transform: none !important;
}
.ev-coming-soon-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(197,165,90,0.15), rgba(197,165,90,0.05));
    border: 1px solid rgba(197,165,90,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c5a55a;
    font-size: 1.2rem;
    margin-bottom: 14px;
}
.ev-coming-soon-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #01153e;
    margin-bottom: 4px;
}
.ev-coming-soon-sub {
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    color: #99a1b2;
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .ev-hero { height: 42vh; min-height: 320px; }
    .ev-hero-title { font-size: 2.2rem; }
    .ev-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .ev-year-num { font-size: 3.5rem; }
    .ev-nav { width: 28px; height: 28px; font-size: 0.6rem; }
}
@media (max-width: 575px) {
    .ev-hero { height: 38vh; min-height: 280px; }
    .ev-hero-title { font-size: 1.6rem; }
    .ev-hero-sub { font-size: 0.88rem; }
    .ev-hero-stats { gap: 16px; }
    .ev-stat-num { font-size: 1.5rem; }
    .ev-filter-btn { font-size: 0.75rem; padding: 6px 14px; }
    .ev-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .ev-year-num { font-size: 2.5rem; }
    .ev-year-header { gap: 14px; margin-bottom: 18px; }
    .ev-year-divider { margin: 28px 0; }
    .ev-overlay-icon { width: 28px; height: 28px; font-size: 0.7rem; }
    .ev-overlay-title { font-size: 0.78rem; }
    .ev-nav { width: 26px; height: 26px; font-size: 0.55px; }
    .ev-counter-badge { opacity: 1; transform: translateY(0); }
}
