.masonry-gallery-container-5b9b0b6f {
    column-count: 3;
    column-gap: 24px;
    width: 100%;
}

.masonry-gallery-item-5b9b0b6f {
    break-inside: avoid;
    margin-bottom: 24px;
    display: inline-block;
    width: 100%;
}

.masonry-gallery-link-5b9b0b6f {
    display: block;
    text-decoration: none;
    color: inherit;
}

.masonry-gallery-image-wrapper-5b9b0b6f {
    overflow: hidden;
    position: relative;
    background-color: #f7f7f7;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Aspect ratio mode overrides */
.masonry-gallery-image-wrapper-5b9b0b6f.ratio-landscape {
    aspect-ratio: 4 / 3;
}
.masonry-gallery-image-wrapper-5b9b0b6f.ratio-portrait {
    aspect-ratio: 3 / 4;
}
.masonry-gallery-image-wrapper-5b9b0b6f.ratio-square {
    aspect-ratio: 1 / 1;
}
.masonry-gallery-image-wrapper-5b9b0b6f.ratio-panoramic {
    aspect-ratio: 16 / 9;
}

/* Force image fill & center/center alignment when custom proportions are set */
.masonry-gallery-image-wrapper-5b9b0b6f[class*="ratio-"] .masonry-gallery-img-5b9b0b6f {
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.masonry-gallery-img-5b9b0b6f {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.masonry-gallery-link-5b9b0b6f:hover .masonry-gallery-img-5b9b0b6f {
    transform: scale(1.05);
}

.masonry-gallery-title-5b9b0b6f {
    margin: 12px 0 0 0;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.4;
    transition: opacity 0.3s ease;
}

.masonry-gallery-link-5b9b0b6f:hover .masonry-gallery-title-5b9b0b6f {
    opacity: 0.8;
}

/* Tablet viewport constraints */
@media (max-width: 1024px) {
    .masonry-gallery-container-5b9b0b6f {
        column-count: 2;
    }
}

/* Mobile viewport constraints */
@media (max-width: 767px) {
    .masonry-gallery-container-5b9b0b6f {
        column-count: 1;
    }
}
