.fg-media-container-1490cfe7 {
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

.fg-media-title-1490cfe7 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.fg-media-grid-1490cfe7 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 10px;
}

.fg-media-item-1490cfe7 {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Perfect 1:1 Aspect Ratio (Square) */
    overflow: hidden;
    cursor: pointer;
    background: #f1f5f9;
}

.fg-media-img-1490cfe7 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.fg-media-item-1490cfe7:hover .fg-media-img-1490cfe7 {
    transform: scale(1.08);
}

.fg-media-overlay-1490cfe7 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.fg-media-item-1490cfe7:hover .fg-media-overlay-1490cfe7 {
    opacity: 1;
}

.fg-media-icon-1490cfe7 {
    transform: scale(0.8);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fg-media-item-1490cfe7:hover .fg-media-icon-1490cfe7 {
    transform: scale(1);
}

/* Lightbox Wrapper */
.fg-media-lightbox-1490cfe7 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

body.admin-bar .fg-media-lightbox-1490cfe7 {
    top: var(--wp-admin--admin-bar--height, 32px);
}
@media screen and (max-width: 782px) {
    body.admin-bar .fg-media-lightbox-1490cfe7 {
        top: 46px;
    }
}

.fg-media-lightbox-1490cfe7.active {
    opacity: 1;
    pointer-events: auto;
}

.fg-media-lightbox-inner-1490cfe7 {
    max-width: 90%;
    max-height: 80%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fg-media-lightbox-holder-1490cfe7 {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fg-media-lightbox-media-1490cfe7 {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 6px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.fg-media-lightbox-video-1490cfe7 {
    width: 800px;
    height: 450px;
    max-width: 100%;
    border-radius: 6px;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.fg-media-lightbox-caption-1490cfe7 {
    color: #f8fafc;
    margin-top: 15px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
}

.fg-media-lightbox-close-1490cfe7 {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 30px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.fg-media-lightbox-close-1490cfe7:hover {
    color: #ffffff;
}
