/* Redesigned Gallery Section */
.gallery-section.redesigned {
    background-color: #FDFDFD;
    padding: 80px 20px;
    text-align: center;
}

.gallery-title.redesigned {
    font-family: var(--font-primary);
    font-size: 36px;
    color: #ffffff;
    margin-bottom: 40px;
    font-weight: 400;
}

/* Video Container */
.gallery-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.gallery-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Quote */
.gallery-quote.redesigned {
    font-family: var(--font-secondary);
    font-size: 16px;
    font-style: italic;
    color: #ffffff;
    max-width: 600px;
    margin: 0 auto 50px;
    line-height: 1.8;
}

/* Masonry-style Grid Layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 Columns on Desktop */
    grid-auto-flow: dense;
    /* Fill gaps automatically */
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 3/4;
    /* Standard Portrait Ratio */
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

/* Wide Item (Spans 2 columns) */
.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item.wide .gallery-img {
    aspect-ratio: 16/9;
    /* Landscape Ratio for wide items */
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 Columns on Tablet */
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 Columns on Mobile */
        gap: 10px;
        /* Smaller gap on mobile */
    }

    .gallery-item.wide {
        grid-column: span 2;
        /* Wide items span full width (2 cols) */
    }
}