/* =========================================
   ORIENTATION GALLERY STYLES
   ========================================= */

/* --- 1. Hero Section --- */
.hero-centered {
    background-color: var(--deep-blue);
    color: var(--white);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
    padding-top: 100px;
    padding-bottom: 50px;
    text-align: center;
}

.hero-centered h1 {
    color: var(--white);
    font-family: var(--font-serif);
    margin-bottom: 5px;
    font-size: 2.5rem;
}

.hero-bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(62, 92, 154, 0.15) 0%, rgba(42, 64, 104, 0) 70%);
    z-index: 1;
    pointer-events: none;
}
.hero-content-wrapper-center { z-index: 2; position: relative; }

/* --- 2. Filter Bar --- */
.schedule-controls {
    max-width: 1200px;
    margin: -30px auto 40px;
    position: relative;
    z-index: 20;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.filter-wrapper {
    background: #fff;
    padding: 10px 15px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    border: 1px solid rgba(0,0,0,0.05);
    flex: 1;
    max-width: 600px;
}

.filter-icon {
    color: var(--primary-blue);
    margin-right: 15px;
    font-size: 1.1rem;
}

.event-filter {
    border: none;
    width: 100%;
    padding: 8px 10px;
    font-family: var(--font-sans);
    font-size: 1rem;
    outline: none;
    background: transparent;
    color: var(--text-grey);
    cursor: pointer;
    font-weight: 500;
}

.event-filter:focus {
    outline: none;
}

.photo-count-wrapper {
    background: #fff;
    padding: 12px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
    white-space: nowrap;
}

#photoCount {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-grey);
    font-weight: 600;
}

#photoCount span {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1.1rem;
}

/* --- 3. Pinterest Masonry Layout --- */
.pinterest-grid {
    max-width: 1400px;
    margin: 0 auto 80px;
    padding: 0 20px;
    column-count: 4;
    column-gap: 20px;
}

/* --- 4. Gallery Card (Pinterest Style) --- */
.gallery-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.02);
    break-inside: avoid;
    page-break-inside: avoid;
    display: inline-block;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    animation: fadeInUp 0.5s ease-out;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

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

/* Image Container */
.gallery-image-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.gallery-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-image {
    transform: scale(1.05);
}

/* Hover Overlay */
.gallery-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-hover-overlay {
    opacity: 1;
}

.gallery-hover-overlay i {
    color: white;
    font-size: 2.5rem;
}

/* Photo count badge */
.photo-count-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.photo-count-badge i {
    font-size: 0.75rem;
}

/* Card Content (Event Details) */
.gallery-card-content {
    padding: 16px 18px;
}

.gallery-event-badge {
    display: inline-block;
    background-color: var(--primary-blue);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gallery-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--deep-blue);
    margin-bottom: 6px;
    line-height: 1.4;
    font-family: var(--font-serif);
}

.gallery-date {
    font-size: 0.85rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
}

.gallery-date i {
    color: var(--primary-blue);
    font-size: 0.8rem;
}

/* --- 5. Event Side Panel --- */
.event-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.event-panel-overlay.active {
    opacity: 1;
    visibility: visible;
}

.event-panel {
    position: fixed;
    top: 0;
    right: -60%;
    width: 60%;
    height: 100%;
    background: #FDFCF8;
    z-index: 9999;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.2);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.event-panel.active {
    right: 0;
}

.event-panel-header {
    padding: 25px 30px;
    background: white;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.panel-header-info h2 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--deep-blue);
    margin-bottom: 5px;
}

.panel-header-info p {
    color: #888;
    font-size: 0.95rem;
}

.panel-close-btn {
    background: #f5f5f5;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.panel-close-btn:hover {
    background: var(--deep-blue);
    color: white;
}

.event-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
}

/* Pinterest-style grid inside panel */
.panel-photos-grid {
    column-count: 3;
    column-gap: 15px;
}

.panel-photo-item {
    break-inside: avoid;
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.panel-photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.panel-photo-item img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.panel-photo-item:hover img {
    transform: scale(1.05);
}

.panel-photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.panel-photo-item:hover .panel-photo-overlay {
    opacity: 1;
}

.panel-photo-overlay i {
    color: white;
    font-size: 1.5rem;
}

/* --- 6. No Results --- */
.no-results {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.no-results i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.no-results p {
    font-size: 1.2rem;
    color: #666;
}

/* --- 6. Lightbox --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

#lightboxImage {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-info {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    margin-top: 15px;
    border-radius: 8px;
    text-align: center;
}

#lightboxTitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--deep-blue);
    margin-bottom: 8px;
    font-family: var(--font-serif);
}

#lightboxEvent {
    font-size: 1rem;
    color: #666;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--deep-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    background: #fff;
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--deep-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* --- Responsive --- */
@media (max-width: 1200px) {
    .pinterest-grid {
        column-count: 3;
    }
    
    .event-panel {
        width: 70%;
        right: -70%;
    }
    
    .panel-photos-grid {
        column-count: 2;
    }
}

@media (max-width: 992px) {
    .pinterest-grid {
        column-count: 2;
    }
    
    .event-panel {
        width: 80%;
        right: -80%;
    }
    
    .schedule-controls {
        flex-direction: column;
        margin: -30px auto 30px;
    }
    
    .filter-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-centered { 
        padding-top: 120px; 
        min-height: 250px; 
    }
    
    .hero-centered h1 {
        font-size: 2rem;
    }
    
    .pinterest-grid {
        column-count: 1;
    }

    .event-panel {
        width: 100%;
        right: -100%;
    }

    .panel-photos-grid {
        column-count: 1;
    }
    
    .event-panel-header {
        padding: 20px;
    }
    
    .panel-header-info h2 {
        font-size: 1.4rem;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .pinterest-grid {
        column-count: 1;
    }
    
    .panel-photos-grid {
        column-count: 1;
    }
}
.pinterest-grid {
    column-fill: balance;
}