.gallery-section {
    padding: 80px 0;
    /* background: linear-gradient(to bottom, #ffffff 0%, #f5f5f5 100%); */
}
@media (max-width:991px){
    .gallery-section{
        padding: 50px 0;
    }
}
@media (max-width:543px){
    .gallery-section{
        padding: 30px 0;
    }
}
.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-header {
    text-align: center;
    margin-bottom: 60px;
}
@media (max-width:991px){
    .gallery-header{
        margin-bottom: 30px;
    }
}
.gallery-subtitle {
    color: var(--secondary-color);
    font-size: 1.1rem;
    line-height: 35px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.gallery-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}
@media (max-width:543px){
    .gallery-title{
        margin-bottom: 15px;
    }
}

.gallery-description {
    max-width: 600px;
    margin: 0 auto;
    color: #666;
    line-height: 1.6;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    padding: 30px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-item-title {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.gallery-item-description {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.gallery-item-link {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 20px;
    border: 1px solid #fff;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.gallery-item-link:hover {
    background: #fff;
    color: #333;
}

/* Popup styles */
.gallery-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-popup.active {
    display: flex;
    opacity: 1;
}

.popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    margin: 20px;
    animation: popupScale 0.3s ease;
}

@keyframes popupScale {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
}

.popup-close {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: #333;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: #f0f0f0;
    transform: rotate(90deg);
}

.popup-details {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
}

.popup-title {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.popup-description {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .popup-close {
        top: -30px;
        right: -30px;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-title {
        font-size: 2rem;
    }
    
    .popup-close {
        top: -30px;
        right: 0;
    }
}
@media (max-width:375px){
    .gallery-title{
        font-size: 20px;
    }
}