.page-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 200" fill="rgba(255,255,255,0.1)"><path d="M0,100 C150,200 350,0 500,100 C650,200 850,0 1000,100 L1000,200 L0,200 Z"/></svg>');
    background-size: 100% 100%;
    animation: wave 15s linear infinite;
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-top: 1rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: white;
}

.content-section {
    padding: 5rem 0;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.info-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.info-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.info-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.info-card h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-card i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
}

.info-value {
    color: #666;
    flex: 1;
    text-align: right;
}

.gallery-section {
    background: #f8f9fa;
    padding: 5rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.gallery-description {
    font-size: 0.9rem;
    opacity: 0.9;
}

.facilities-section {
    padding: 5rem 0;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.facility-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.facility-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.facility-card:hover::before {
    opacity: 0.95;
}

.facility-card:hover {
    transform: translateY(-10px);
    color: white;
}

.facility-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.facility-card:hover .facility-icon {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.facility-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.facility-card p {
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.map-section {
    background: #f8f9fa;
    padding: 5rem 0;
}

.map-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 3rem;
}

.map-placeholder {
    height: 400px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.map-placeholder::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="rgba(255,255,255,0.1)"><circle cx="20" cy="20" r="2"/><circle cx="80" cy="30" r="2"/><circle cx="40" cy="70" r="2"/><circle cx="60" cy="50" r="2"/><circle cx="30" cy="80" r="2"/></svg>');
    background-size: 50px 50px;
    animation: float 10s linear infinite;
}

.map-info {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.map-info-item {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
}

.map-info-item i {
    font-size: 2rem;
    color: #4facfe;
    margin-bottom: 1rem;
}

.map-info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.map-info-item p {
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .info-card {
        padding: 2rem;
    }

    .facilities-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .map-info {
        grid-template-columns: 1fr;
    }
}

/* Filter Section */
.gallery-filter {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.gallery-filter::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.filter-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.filter-select,
.filter-input {
    padding: 0.8rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: white;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: #4facfe;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}

.filter-btn,
.reset-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    margin-right: 1rem;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
}

.reset-btn {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e9ecef;
}

.reset-btn:hover {
    background: #e9ecef;
    color: #495057;
}

/* Enhanced Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    padding: 2.5rem 1.5rem 1.5rem;
    transform: translateY(80%);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
}

.gallery-category {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gallery-date {
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.gallery-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.gallery-description {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.gallery-location,
.gallery-pic {
    font-size: 0.8rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.empty-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 3rem;
    color: white;
}

.empty-state h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #6c757d;
}

/* Pagination Styles */
.gallery-pagination {
    margin-top: 4rem;
    text-align: center;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: white;
    color: #4facfe;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.pagination-btn:hover:not(.disabled) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.3);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: #6c757d;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
}

.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    color: #4facfe;
    text-decoration: none;
    border-radius: 50%;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.pagination-number:hover:not(.active) {
    background: #4facfe;
    color: white;
    transform: translateY(-2px);
}

.pagination-number.active {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
}

.pagination-info {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Enhanced Modal Styles */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    margin: 2% auto;
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.4s ease;
    display: flex;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 0, 0, 0.7);
    transform: scale(1.1);
}

.modal-image-container {
    flex: 1;
    position: relative;
    min-height: 400px;
}

.modal-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    width: 400px;
    padding: 2rem;
    background: white;
    display: flex;
    flex-direction: column;
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
}

.modal-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.modal-category {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.modal-date {
    color: #6c757d;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.modal-body p {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.modal-details {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.detail-item i {
    width: 20px;
    color: #4facfe;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-content {
        flex-direction: column;
        max-width: 95%;
    }

    .modal-info {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .filter-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .filter-btn,
    .reset-btn {
        margin-top: 0.5rem;
    }

    .pagination-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .pagination-numbers {
        order: -1;
    }

    .gallery-item {
        height: 250px;
    }

    .gallery-overlay {
        transform: translateY(60%);
    }

    .modal-content {
        margin: 5% auto;
        max-height: 85%;
    }

    .modal-image-container {
        min-height: 250px;
    }
}

/* Additional Gallery Styles & Utilities */

/* Loading States */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4facfe;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.gallery-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    grid-column: 1 / -1;
}

.loading-text {
    margin-left: 1rem;
    color: #6c757d;
}

/* Error States */
.image-error-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.image-error-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.gallery-item.image-error {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
}

.gallery-item.image-error::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="rgba(255,255,255,0.1)"><path d="M20,20 L80,80 M80,20 L20,80"/></svg>');
    background-size: 50px 50px;
    opacity: 0.3;
}

/* Image Placeholder */
.image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.image-placeholder i {
    font-size: 3rem;
    color: #dee2e6;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for accessibility */
.gallery-item:focus {
    outline: 3px solid #4facfe;
    outline-offset: 2px;
}

.filter-select:focus,
.filter-input:focus {
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.2);
}

.pagination-btn:focus,
.pagination-number:focus {
    outline: 2px solid #4facfe;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .gallery-overlay {
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
    }

    .filter-select,
    .filter-input {
        border-width: 2px;
        border-color: #000;
    }

    .pagination-btn,
    .pagination-number {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .gallery-item,
    .gallery-overlay,
    .modal-content,
    .pagination-btn {
        transition: none;
    }

    .loading-spinner {
        animation: none;
        border-top-color: transparent;
    }

    .gallery-item:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    .gallery-filter,
    .gallery-pagination,
    .modal {
        display: none !important;
    }

    .gallery-grid {
        display: block;
    }

    .gallery-item {
        break-inside: avoid;
        margin-bottom: 2rem;
        transform: none !important;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .gallery-overlay {
        position: static;
        transform: none;
        background: white;
        color: black;
        padding: 1rem;
    }
}

/* Custom scrollbar */
.modal-info::-webkit-scrollbar {
    width: 8px;
}

.modal-info::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-info::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 10px;
}

.modal-info::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #357abd 0%, #00b8cc 100%);
}

/* Gallery statistics */
.gallery-stats {
    text-align: center;
    margin-bottom: 2rem;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Filter badge */
.filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin: 0.5rem 0.5rem 0.5rem 0;
}

.filter-badge .remove-filter {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.7rem;
}

.filter-badge .remove-filter:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Smooth entrance animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Gallery navigation hints */
.gallery-nav-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal:hover .gallery-nav-hint {
    opacity: 1;
}

/* Responsive utilities */
@media (max-width: 480px) {
    .gallery-item {
        height: 220px;
    }

    .gallery-overlay {
        padding: 1.5rem 1rem 1rem;
        transform: translateY(70%);
    }

    .gallery-title {
        font-size: 1rem;
    }

    .gallery-description {
        font-size: 0.8rem;
    }

    .modal-content {
        margin: 1rem;
        max-width: calc(100% - 2rem);
        max-height: calc(100% - 2rem);
    }

    .modal-info {
        padding: 1rem;
    }

    .filter-container {
        gap: 1rem;
    }

    .pagination-numbers {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Filter Summary Styles */
.filter-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 1rem 1.5rem;
    margin: 1rem 0 2rem;
    border-left: 4px solid #4facfe;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: none;
    animation: slideInDown 0.4s ease;
}

.filter-summary-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-summary-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    animation: slideInUp 0.3s ease;
}

.remove-filter {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.2s ease;
}

.remove-filter:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.clear-all-filters {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
}

.clear-all-filters:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.3);
}

/* Enhanced Loading States */
.gallery-loading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 300px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.gallery-loading::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #4facfe, transparent);
    animation: loading-bar 2s linear infinite;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4facfe;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loading-text {
    color: #6c757d;
    font-size: 1rem;
    font-weight: 500;
    animation: pulse 2s ease-in-out infinite;
}

/* Enhanced Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.empty-state::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    opacity: 0.5;
    z-index: -1;
}

.empty-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 3rem;
    color: white;
    animation: bounce 2s ease-in-out infinite;
}

.empty-state h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Enhanced Gallery Item States */
.gallery-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.gallery-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(79, 172, 254, 0.1) 0%,
        rgba(0, 242, 254, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:focus {
    outline: 3px solid #4facfe;
    outline-offset: 3px;
}

/* Enhanced Button States */
.filter-btn:disabled,
.reset-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.filter-btn:disabled:hover,
.reset-btn:disabled:hover {
    box-shadow: none;
    transform: none;
}

/* Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes loading-bar {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

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

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Enhanced Modal Animation */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes modalSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .filter-summary-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .filter-tags {
        width: 100%;
    }

    .filter-tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .gallery-loading {
        height: 250px;
        margin-top: 2rem;
    }

    .loading-spinner {
        width: 30px;
        height: 30px;
        border-width: 2px;
    }

    .loading-text {
        font-size: 0.9rem;
    }

    .empty-state {
        padding: 3rem 1.5rem;
    }

    .empty-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }

    .empty-state h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .filter-summary {
        padding: 0.8rem 1rem;
        margin: 0.8rem 0 1.5rem;
    }

    .filter-tag {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
        border-radius: 15px;
    }

    .remove-filter {
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
    }

    .clear-all-filters {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .gallery-loading {
        height: 200px;
        margin-top: 1.5rem;
    }

    .empty-state {
        padding: 2rem 1rem;
    }

    .empty-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .empty-state h3 {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }

    .empty-state p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .filter-tag {
        border: 2px solid currentColor;
    }

    .gallery-loading {
        border: 2px solid #000;
    }

    .loading-spinner {
        border-top-color: #000;
    }

    .empty-state {
        border: 2px solid #000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .filter-tag,
    .gallery-item,
    .loading-spinner,
    .empty-icon {
        animation: none !important;
        transition: none !important;
    }

    .gallery-loading::before {
        animation: none !important;
    }

    .loading-text {
        animation: none !important;
    }

    .filter-summary {
        animation: none !important;
    }
}

/* Print Styles */
@media print {
    .filter-summary,
    .gallery-loading,
    .empty-state {
        display: none !important;
    }

    .gallery-item {
        break-inside: avoid;
        animation: none !important;
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* Dark Mode Support (if implemented) */
@media (prefers-color-scheme: dark) {
    .filter-summary {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
        color: #ecf0f1;
    }

    .filter-summary-label {
        color: #ecf0f1;
    }

    .gallery-loading {
        background: #2c3e50;
        color: #ecf0f1;
    }

    .loading-text {
        color: #bdc3c7;
    }

    .empty-state {
        background: #2c3e50;
        color: #ecf0f1;
    }

    .empty-state h3 {
        color: #ecf0f1;
    }

    .empty-state p {
        color: #bdc3c7;
    }
}

/* Focus Management for Accessibility */
.filter-summary *:focus,
.gallery-loading *:focus,
.empty-state *:focus {
    outline: 2px solid #4facfe;
    outline-offset: 2px;
}

/* Smooth Scrolling Enhancement */
html {
    scroll-behavior: smooth;
}

/* Enhanced Error State Styling */
.gallery-error {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 3rem;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.gallery-error .empty-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.gallery-error h3,
.gallery-error p {
    color: white;
}

.gallery-error .filter-btn,
.gallery-error .reset-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.gallery-error .filter-btn:hover,
.gallery-error .reset-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Loading State for Individual Elements */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Tooltip Enhancements */
.filter-tag,
.remove-filter,
.clear-all-filters {
    position: relative;
}

.filter-tag[title]:hover::after,
.remove-filter[title]:hover::after,
.clear-all-filters[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
}

/* Progressive Enhancement for JavaScript */
.no-js .filter-summary,
.no-js .gallery-loading {
    display: none !important;
}

/* Custom Scrollbar for Filter Summary */
.filter-summary::-webkit-scrollbar {
    height: 6px;
}

.filter-summary::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.filter-summary::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 3px;
}

.filter-summary::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #357abd 0%, #00b8cc 100%);
}
