.gallery-grid-2f036b68 {
    display: grid;
    width: 100%;
}

.gallery-item-2f036b68 {
    display: flex;
    flex-direction: column;
}

.gallery-item-link-2f036b68 {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.gallery-item-link-2f036b68:hover {
    color: inherit;
    text-decoration: none;
}

.gallery-image-wrapper-2f036b68 {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

.gallery-image-wrapper-2f036b68 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-image-wrapper-2f036b68:hover img {
    transform: scale(1.05);
}

.gallery-overlay-2f036b68 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex; 
    align-items: center;
    justify-content: center;
}

.gallery-image-wrapper-2f036b68:hover .gallery-overlay-2f036b68 {
    opacity: 1;
}

.gallery-overlay-2f036b68 span {
    color: #fff;
    font-size: 24px;
}

.gallery-item-title-2f036b68 {
    margin: 10px 0 2px;
    font-size: 1.1rem;
    font-weight: 600;
}

.gallery-item-caption-2f036b68 {
    font-size: 0.85rem;
    color: #888888;
    line-height: 1.3;
    margin-top: 2px;
}

/* Simple Lightbox Style */
.gallery-lightbox-2f036b68 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

body.admin-bar .gallery-lightbox-2f036b68 {
    top: var(--wp-admin--admin-bar--height, 32px);
    height: calc(100vh - var(--wp-admin--admin-bar--height, 32px));
}

@media screen and (max-width: 782px) {
    body.admin-bar .gallery-lightbox-2f036b68 {
        top: 46px;
        height: calc(100vh - 46px);
    } 
}

.gallery-lightbox-2f036b68.is-active {
    opacity: 1;
    pointer-events: auto;
}

.gallery-lightbox-content-2f036b68 {
    position: relative;
    max-width: 90%;
    max-height: 80%;
}

.gallery-lightbox-content-2f036b68 img {
    max-width: 100%;
    max-height: 100vh;
    object-fit: contain;
    border-radius: 4px;
}

.gallery-lightbox-close-2f036b68 {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.gallery-lightbox-title-2f036b68 {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 16px;
}
