.acf-images-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
    position: relative;
}

.acf-image-item {
    width: 100%;
    aspect-ratio: 1/1;
    border: 1px solid #efeff2;
    border-radius: 6px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
}

.acf-image-item.enlarged {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    height: 90vh;
    aspect-ratio: auto;
    z-index: 1000;
    cursor: zoom-out;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

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

.overlay.active {
    display: block;
}

.video-container {
    grid-column: span 2;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border: 1px solid #efeff2;
    border-radius: 6px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .acf-images-grid {
        grid-template-columns: 1fr;
    }
    
    .video-container {
        grid-column: span 1;
    }
    
    .acf-image-item.enlarged {
        width: 95vw;
        height: auto;
        max-height: 90vh;
    }
}