/* Photo Album Modal */
#eventPhotoModal .modal-content {
    background: #050F28;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}

#eventPhotoModal .modal-title {
    font-weight: 700;
    position: absolute;
    top: 1.5rem;
    text-align: center;
    color: white;
}

#eventPhotoModal .modal-header {
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#eventPhotoModal .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.event-photo {
    border-radius: 15px;
    width: 100%;
    height: 300px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-photo:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.pagination .page-item .page-link {
    background-color: transparent;
    border: 1px solid #2a3248;
    color: #fff;
    margin: 0 2px;
    border-radius: 5px;
}

.pagination .page-item .page-link:hover {
    background-color: #2a3248;
    color: #fff;
}

.pagination .page-item.active .page-link {
    background-color: #fff;
    border-color: #fff;
    color: #050F28;
}

.pagination .page-item.disabled .page-link {
    background-color: transparent;
    border-color: #2a3248;
    color: #4f5a77;
}

#loading-spinner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 15, 40, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 30px;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid #fff;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#photo-viewer {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}
#viewer-img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 70vh;
  border-radius: 15px;
}

#close-viewer {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1056; /* Ensure it's above the image */
}

/* Custom Thumbnail Carousel Styles */
.thumbnail-container-custom {
    position: relative;
    padding: 0 60px; /* Increased space for nav buttons */
    visibility: hidden; /* Hide by default */
    margin-top: 20px;
    min-height: 120px; /* Ensure minimum height */
}

.thumbnail-scroller {
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    max-width: 100%;
    position: relative;
}

.thumbnail-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px; /* Increased spacing between thumbnails */
    padding: 15px 0;
    align-items: center;
    min-height: 80px; /* Ensure minimum height */
}

.album-foto-slide {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.album-foto-slide:hover {
    transform: scale(1.05);
}

.thumbnail-item {
    border-radius: 8px;
    opacity: 0.7;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 80px;
    width: 80px;
    object-fit: cover;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.thumbnail-item:hover {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.album-foto-slide.active-thumbnail .thumbnail-item {
    opacity: 1;
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.5), 0 4px 12px rgba(0,0,0,0.3);
    transform: scale(1.1);
}

/* Navigation buttons - Enhanced visibility */
.thumb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 120px;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.thumb-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.thumb-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.thumb-nav:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3), 0 4px 12px rgba(0,0,0,0.3);
}

.thumb-nav-left {
    left: 10px;
}

.thumb-nav-right {
    right: 10px;
}

/* Ensure buttons are always visible */
.thumb-nav-left,
.thumb-nav-right {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .thumbnail-container-custom {
        padding: 0 50px;
    }
    
    .thumb-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .thumbnail-item {
        height: 60px;
        width: 60px;
    }
    
    .thumbnail-track {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .thumbnail-container-custom {
        padding: 0 45px;
    }
    
    .thumb-nav {
        width: 35px;
        height: 35px;
        font-size: 18px;
        margin-top: -1rem;
    }
    
    .thumbnail-item {
        height: 50px;
        width: 50px;
    }
    
    .thumbnail-track {
        gap: 6px;
    }

    #photo-viewer {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 10px;
        margin-top: -4rem;
    }
} 