* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
:root {
    --primary: #6366f1;
    --secondary: #818cf8;
    --dark: #1e293b;
    --light: #f8fafc;
    --accent: #c084fc;
    --background: #f5f7ff;
    --card: #ffffff;
}
body {
    background-color: var(--background);
    color: var(--dark);
}
.photo-gallery {
    padding: 5rem 2rem;
    background: var(--background);
    max-width: 1400px;
    margin: 0 auto;
}
.photo-gallery h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 2.5rem;
    text-align: center;
    background: linear-gradient(120deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}
.gallery-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 3.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 2.5rem;
    padding: 1rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
.gallery-photo {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    width: 100%;
}
.gallery-photo:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.25);
}
.gallery-photo img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    transition: all 0.5s ease;
    display: block;
}
.gallery-photo:hover img {
    transform: scale(1.05);
}
.gallery-photo-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 80%, rgba(0,0,0,0) 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 0 0 20px 20px;
    opacity: 1;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}
.gallery-photo:hover .gallery-photo-title {
    padding-bottom: 1.5rem;
    background: linear-gradient(to top, rgba(99,102,241,0.9) 0%, rgba(99,102,241,0.5) 80%, rgba(0,0,0,0) 100%);
}
.gallery-header {
    margin-bottom: 4rem;
    position: relative;
}
.gallery-header::after {
    content: "";
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
}
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .gallery-photo img {
        height: 350px;
    }
}
@media (max-width: 768px) {
    .photo-gallery {
        padding: 4rem 1.5rem;
    }
    
    .photo-gallery h2 {
        font-size: 2.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 1.5rem;
    }
    
    .gallery-photo img {
        height: 300px;
    }
}
@media (max-width: 480px) {
    .photo-gallery h2 {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-photo img {
        height: 280px;
    }
    
    .gallery-photo-title {
        font-size: 1rem;
        padding: 0.8rem 1rem;
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.photo-gallery {
    animation: fadeIn 0.8s ease-out forwards;
}
.gallery-photo {
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: calc(var(--photo-index) * 0.1s);
}


 .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    padding: 20px;
}

.modal-image {
    max-width: 95%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.modal-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1010;
    transition: all 0.2s ease;
}

.close:hover {
    color: var(--primary);
    transform: scale(1.1);
}


@keyframes modalFadeIn {
    from {opacity: 0}
    to {opacity: 1}
}

.modal.show {
    display: block;
    animation: modalFadeIn 0.3s;
}

body.modal-open {
    overflow: hidden;
}

.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    width: 100%;
}


.pagination {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
}

.pagination li {
    opacity: 0;
    animation: fadeInScale 0.3s ease forwards;
    animation-delay: calc(var(--i) * 0.1s);
}

.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    color: var(--dark);
    background-color: var(--card);
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.pagination li a:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(99,102,241,0.3);
}

.pagination li.active span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 5px 15px rgba(99,102,241,0.3);
}

.pagination li.disabled span {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #e2e8f0;
    color: #94a3b8;
    box-shadow: none;
}


.pagination-info {
    text-align: center;
    margin-top: 1rem;
    color: #64748b;
    font-size: 0.9rem;
}


@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-empty {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .pagination li a,
    .pagination li span {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-empty {
        grid-column: span 1;
    }
    
    .pagination {
        gap: 0.3rem;
    }
    
    .pagination li a,
    .pagination li span {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
        border-radius: 8px;
    }
}