.showcases-gallery .gallery {
    display: grid;
    grid-template-columns: repeat(2, 600px);
    gap: 1.5rem;
    justify-content: center;
}

.gallery-item {
    background-size: cover;
    background-position: center;
    width: 600px;
    height: 600px;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-size 0.5s ease-in-out;
    overflow: hidden;
}

.gallery-item:hover {
    background-size: 120%;
}

.gallery-item .info-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(44, 62, 80, 0.8);
    color: white;
    padding: 1rem;
    text-align: left;
    transition: background 0.3s ease;
}

.gallery-item:hover .info-panel {
    background: rgba(255, 255, 255, 0.8);
}

.gallery-item:hover .info-panel h3,
.gallery-item:hover .info-panel .date,
.gallery-item:hover .info-panel p {
    color: var(--header-footer-bg);
}

.gallery-item h3 {
    margin: 0;
    font-size: 1.5rem;
    color: white;
}

.gallery-item .date {
    font-size: 0.9rem;
    margin: 0.5rem 0;
    color: white;
}

.gallery-item p {
    margin: 0;
    font-size: 1rem;
    color: white;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

.popup-content {
    background: #fff;
    padding: 2rem;
    margin: 5% auto;
    max-width: 1000px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 8px;
    position: relative;
}

.image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
}

.popup-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    background: #e0e0e0;
}

#popup-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
}

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

    .gallery-item {
        width: 100%;
        height: 400px;
    }

    .gallery-item h3 {
        font-size: 1.3rem;
    }

    .gallery-item .date {
        font-size: 0.8rem;
    }

    .gallery-item p {
        font-size: 0.9rem;
    }

    .popup-content {
        max-width: 95%;
        padding: 1rem;
    }

    #popup-images {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}