.masonry-gallery-container-d6442f22 {
    column-count: 4;
    column-gap: 20px;
    padding: 20px 0;
}
@media (max-width: 1024px) {
    .masonry-gallery-container-d6442f22 { column-count: 2; }
}
@media (max-width: 767px) {
    .masonry-gallery-container-d6442f22 { 
        column-count: 1; 
        column-gap: 0;
    }
}
.masonry-item-d6442f22 {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}
.masonry-item-d6442f22:hover {
    border-color: #C9A24D;
}
.masonry-item-d6442f22 img {
    width: 100%;
    display: block;
    height: auto;
    border-radius: 6px; /* Inner radius to fit inside border */
}
.masonry-caption-d6442f22 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(248, 244, 232, 0.9); /* #F8F4E8 with opacity */
    color: black;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.masonry-item-d6442f22:hover .masonry-caption-d6442f22 {
    transform: translateY(0);
}

/* Lightbox Styles */
.gallery-lightbox-d6442f22 {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}
body.admin-bar .gallery-lightbox-d6442f22 {
    top: var(--wp-admin--admin-bar--height, 32px);
    height: calc(100% - var(--wp-admin--admin-bar--height, 32px));
}
@media screen and (max-width: 782px) {
    body.admin-bar .gallery-lightbox-d6442f22 {
        top: 46px;
        height: calc(100% - 46px);
    }
}
.gallery-lightbox-d6442f22 img {
    max-width: 90%;
    max-height: 90vh; /* Better fit for mobile */
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    object-fit: contain; /* Preserve proportions */
}
.lightbox-close-d6442f22 {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    z-index: 100000;
}
.lightbox-prev-d6442f22, .lightbox-next-d6442f22 {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent !important;
    border: none;
    color: white;
    font-size: 50px;
    cursor: pointer;
    padding: 20px;
    transition: color 0.3s;
    outline: none;
    z-index: 100000;
}
.lightbox-prev-d6442f22:hover, .lightbox-next-d6442f22:hover,
.lightbox-prev-d6442f22:focus, .lightbox-next-d6442f22:focus,
.lightbox-prev-d6442f22:active, .lightbox-next-d6442f22:active {
    background-color: transparent !important;
}
.lightbox-prev-d6442f22:hover, .lightbox-next-d6442f22:hover {
    color: #C9A24D;
}
.lightbox-prev-d6442f22:focus-visible, .lightbox-next-d6442f22:focus-visible {
    outline: 2px solid white;
    outline-offset: -5px;
}
.lightbox-prev-d6442f22 { left: 10px; }
.lightbox-next-d6442f22 { right: 10px; }

@media screen and (max-width: 767px) {
    .lightbox-prev-d6442f22, .lightbox-next-d6442f22 {
        font-size: 30px;
        padding: 10px;
    }
    .lightbox-close-d6442f22 {
        font-size: 30px;
        top: 10px;
        right: 15px;
    }
    .gallery-lightbox-d6442f22 img {
        max-width: 95%;
    }
}