.rg-75db831d-wrapper {
    position: relative;
    width: 100%;
}

.rg-75db831d-grid {
    display: grid;
    width: 100%;
}

.rg-75db831d-item {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.rg-75db831d-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Aspect Ratios */
.rg-75db831d-ratio-1-1 .rg-75db831d-item {
    aspect-ratio: 1 / 1;
}

.rg-75db831d-ratio-4-3 .rg-75db831d-item {
    aspect-ratio: 4 / 3;
}

.rg-75db831d-ratio-16-9 .rg-75db831d-item {
    aspect-ratio: 16 / 9;
}

.rg-75db831d-ratio-auto .rg-75db831d-item {
    aspect-ratio: auto;
}

/* Interactive styles apply only when lightbox is enabled */
.rg-75db831d-grid[data-lightbox="yes"] .rg-75db831d-item {
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.rg-75db831d-grid[data-lightbox="yes"] .rg-75db831d-item:hover {
    transform: scale(1.02);
    opacity: 0.95;
}

/* Reload Icon Button */
.rg-75db831d-reload-btn {
    position: absolute;
    z-index: 10;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.rg-75db831d-reload-btn.is-spinning i,
.rg-75db831d-reload-btn.is-spinning svg {
    animation: rg-75db831d-spin 0.6s linear infinite;
}

@keyframes rg-75db831d-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Lightbox Styling */
.rg-75db831d-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.admin-bar .rg-75db831d-lightbox {
    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 .rg-75db831d-lightbox {
        top: 46px;
        height: calc(100% - 46px);
    }
}

.rg-75db831d-lightbox.is-active {
    opacity: 1;
}

.rg-75db831d-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
}

.rg-75db831d-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    z-index: 2;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.rg-75db831d-lightbox.is-active .rg-75db831d-lightbox-content {
    transform: scale(1);
}

.rg-75db831d-lightbox-img {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.rg-75db831d-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 35px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 5px;
}

.rg-75db831d-lightbox-close:hover {
    color: #f00;
}
