/* Image Gallery Block Styles */
.s3t-vpb-image-gallery {
    margin: 2rem 0;
}

.gallery-container {
    max-width: 100%;
    margin: 0 auto;
}

.gallery-row {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    width: 100%;
}

.gallery-row:last-child {
    margin-bottom: 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border: 13px solid #FFF;
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.11);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.11);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* aspect-ratio: 4/3; */
}

/* Row 1: 50% each */
.row-1 .item-50 {
    flex: 1;
    width: calc(50% - 0.5rem);
}
.row-1 .item-50.gallery-item img {
  aspect-ration: 559/319;
}

/* Row 2: 33.33% each */
.row-2 .item-33 {
    flex: 1;
    width: calc(33.333% - 0.667rem);
}
.row-2 .item-33.gallery-item img {
  aspect-ration: 354/319;
}

/* Row 3: 75% and 25% */
.row-3 .item-75 {
    /* flex: 3; */
    width: calc(67.333% - 0.75rem);
}
.row-3 .item-75.gallery-item img {
  aspect-ration: 767/319;
}

.row-3 .item-25 {
    flex: 1;
    width: calc(33.333% - 0.25rem);
}
.row-3 .item-25.gallery-item img {
  aspect-ration: 354/319;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .gallery-item {
        width: 100% !important;
        flex: none;
    }

    .gallery-item img {
        aspect-ratio: 16/9;
    }
}

@media (max-width: 480px) {
    .gallery-container {
        /* margin: 0 -1rem; */
    }

    .gallery-row {
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .gallery-item {
        border-radius: 4px;
    }
}

/* Admin Preview Styles */
.block-editor-block-preview__content .s3t-vpb-image-gallery {
    margin: 1rem 0;
}

.block-editor-block-preview__content .gallery-item img {
    max-height: 200px;
}
