.gmr-gallery-page #page,
.gmr-gallery-page .site {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    grid-template-columns: none !important;
}

.gmr-gallery-page .site-content,
.gmr-gallery-page .content-area,
.gmr-gallery-page #primary,
.gmr-gallery-page .site-main,
.gmr-gallery-page article.page,
.gmr-gallery-page .entry-content {
    width: 100% !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    float: none !important;
}

.gmr-gallery-page .site-content {
    display: block !important;
    grid-template-columns: minmax(0, 1fr) !important;
}

.gmr-gallery-page .widget-area,
.gmr-gallery-page #secondary {
    display: none !important;
}

.gmr-gallery-page .gmrg-page-canvas,
.gmrg-page-canvas {
    position: relative;
    width: 100% !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    overflow: visible;
    background: #07152f;
}

.gmr-gallery-page .gmrg-template-main {
    display: block !important;
    position: relative !important;
    right: auto !important;
    left: auto !important;
    width: 100vw !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    transform: none !important;
    overflow: hidden;
    background: #07152f;
}

.gmr-gallery-page .gmrg-template-main .gmrg-page-canvas {
    width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.gmr-gallery-page .gmrg-shell,
.gmrg-page-canvas > .gmrg-shell {
    width: min(1320px, calc(100vw - 64px)) !important;
    max-width: 1320px !important;
    margin: 0 auto !important;
    padding: 18px 0 42px !important;
    color: #f6f2ff;
}

.gmr-gallery-page .gmrg-shell,
.gmr-gallery-page .gmrg-shell * {
    box-sizing: border-box;
}

.gmr-gallery-page .gmrg-hero--editorial {
    min-height: 0 !important;
    height: 286px !important;
    margin: 0 0 18px !important;
    border: 1px solid rgba(178, 142, 237, .3) !important;
    border-radius: 18px !important;
    background-position: center 43% !important;
    overflow: hidden;
}

.gmr-gallery-page .gmrg-hero--editorial::before {
    background: linear-gradient(90deg, rgba(4, 12, 30, .86), rgba(4, 12, 30, .48) 55%, rgba(4, 12, 30, .25)) !important;
}

.gmr-gallery-page .gmrg-hero--editorial .gmrg-hero-copy {
    width: min(680px, 68%) !important;
    padding: 42px 48px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.gmr-gallery-page .gmrg-hero--editorial h1 {
    margin: 8px 0 12px !important;
    color: #fff !important;
    font-size: clamp(34px, 4.1vw, 58px) !important;
    line-height: 1.02 !important;
}

.gmr-gallery-page .gmrg-hero--editorial p {
    max-width: 620px;
    margin: 0 !important;
    color: #e7def8 !important;
    font-size: 17px !important;
    line-height: 1.55 !important;
}

.gmrg-lead-collection {
    display: grid;
    grid-template-columns: 1.25fr .95fr;
    min-height: 310px;
    margin: 0 0 26px;
    overflow: hidden;
    border: 1px solid rgba(174, 134, 232, .27);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(15, 29, 65, .96), rgba(31, 20, 64, .96));
    box-shadow: 0 18px 48px rgba(1, 5, 18, .28);
}

.gmrg-lead-photo {
    display: block;
    min-height: 310px;
    background: #132348 center / cover no-repeat;
    transition: transform .25s ease, filter .25s ease;
}

.gmrg-lead-photo:hover {
    filter: brightness(1.08);
}

.gmrg-lead-photo.is-placeholder {
    background: radial-gradient(circle at 35% 45%, rgba(132, 82, 201, .48), transparent 34%), #101f43;
}

.gmrg-lead-copy {
    align-self: center;
    padding: 34px 38px;
}

.gmrg-lead-copy h2 {
    margin: 8px 0 12px !important;
    color: #fff !important;
    font-size: clamp(28px, 3vw, 42px) !important;
}

.gmrg-lead-copy p {
    margin: 0 0 16px !important;
    color: #d8cfea !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
}

.gmrg-lead-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.gmrg-lead-meta span {
    padding: 7px 11px;
    border: 1px solid rgba(185, 151, 232, .25);
    border-radius: 999px;
    color: #dcd1ee;
    background: rgba(255, 255, 255, .055);
    font-size: 12px;
}

.gmrg-centered-heading {
    margin: 0 auto 18px;
    text-align: center;
}

.gmrg-centered-heading h2 {
    margin: 5px 0 6px !important;
    color: #fff !important;
    font-size: clamp(28px, 3vw, 40px) !important;
}

.gmrg-centered-heading p {
    margin: 0 !important;
    color: #bfb4d3 !important;
    font-size: 15px !important;
}

.gmrg-mosaic-section,
.gmrg-videos {
    margin: 0 0 28px;
    padding: 28px;
    border: 1px solid rgba(159, 119, 216, .21);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(8, 24, 55, .9), rgba(18, 17, 49, .9));
}

.gmrg-mosaic {
    display: grid;
    grid-template-columns: 1.25fr .75fr .75fr 1.1fr;
    grid-template-rows: 155px 155px;
    gap: 10px;
}

.gmrg-mosaic.is-single {
    display: block;
}

.gmrg-mosaic.is-single .gmrg-mosaic-card {
    min-height: 360px;
    border-radius: 16px;
    box-shadow: 0 18px 42px rgba(1, 6, 20, .35);
}

.gmrg-mosaic.is-single .gmrg-mosaic-card > span {
    right: 24px;
    bottom: 22px;
    left: 24px;
    padding: 18px 20px;
    border: 1px solid rgba(223, 203, 249, .2);
    border-radius: 12px;
    background: rgba(7, 13, 35, .68);
    backdrop-filter: blur(10px);
}

.gmrg-mosaic.is-single .gmrg-mosaic-card b {
    font-size: clamp(22px, 2.5vw, 34px);
}

.gmrg-mosaic.is-single .gmrg-mosaic-card small {
    margin-top: 5px;
    font-size: 13px;
}

.gmrg-mosaic-card {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 0;
    border: 1px solid rgba(208, 184, 244, .23);
    border-radius: 13px;
    background: #122348 center / cover no-repeat;
}

.gmrg-mosaic-card::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 48%, rgba(3, 8, 23, .9));
    transition: background .2s ease;
}

.gmrg-mosaic-card:hover::after {
    background: linear-gradient(180deg, rgba(119, 73, 177, .08), rgba(3, 8, 23, .86));
}

.gmrg-mosaic-card > span {
    position: absolute;
    z-index: 2;
    right: 13px;
    bottom: 11px;
    left: 13px;
}

.gmrg-mosaic-card b,
.gmrg-mosaic-card small {
    display: block;
    color: #fff;
}

.gmrg-mosaic-card b {
    font-size: 15px;
}

.gmrg-mosaic-card small {
    margin-top: 2px;
    color: #d1c4e5;
    font-size: 11px;
}

.gmrg-mosaic-card--1,
.gmrg-mosaic-card--4 {
    grid-row: span 2;
}

.gmrg-mosaic-card--5 {
    grid-column: 2;
}

.gmrg-mosaic-card--6 {
    grid-column: 3;
}

.gmrg-mosaic-card--7 {
    grid-column: 4;
}

.gmrg-mosaic-card.is-placeholder {
    background: radial-gradient(circle at 35% 35%, rgba(126, 77, 190, .42), transparent 30%), #102044;
}

.gmrg-video-grid {
    display: grid;
    grid-template-columns: 1.35fr .82fr .82fr;
    gap: 14px;
}

.gmrg-video-grid.is-single {
    grid-template-columns: minmax(0, 720px);
    justify-content: center;
}

.gmrg-video-card {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(191, 157, 235, .25);
    border-radius: 14px;
    color: #fff !important;
    text-decoration: none !important;
    background: rgba(8, 19, 46, .88);
    transition: transform .2s ease, border-color .2s ease;
}

.gmrg-video-player {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: radial-gradient(circle at 50% 50%, rgba(115, 70, 171, .4), transparent 38%), #122348;
}

.gmrg-video-player iframe,
.gmrg-video-player video,
.gmrg-video-player .wp-video,
.gmrg-video-player .mejs-container,
.gmrg-video-player .mejs-mediaelement {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
}

.gmrg-video-player iframe,
.gmrg-video-player video {
    display: block;
    border: 0;
    object-fit: contain;
}

.gmrg-video-player .wp-video {
    position: absolute;
    inset: 0;
}

.gmrg-video-player .mejs-container {
    background: #071126;
}

.gmrg-video-card:hover {
    transform: translateY(-2px);
    border-color: rgba(196, 154, 250, .58);
}

.gmrg-video-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: #17284c center / cover no-repeat;
}

.gmrg-video-thumb::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent, rgba(2, 7, 20, .28));
}

.gmrg-video-thumb i {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    color: #fff;
    background: rgba(31, 18, 60, .66);
    font-size: 22px;
    font-style: normal;
    line-height: 1;
}

.gmrg-video-thumb.is-placeholder {
    background: radial-gradient(circle, rgba(133, 81, 199, .45), transparent 38%), #13264b;
}

.gmrg-video-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 15px;
}

.gmrg-video-copy b {
    color: #fff;
    font-size: 14px;
}

.gmrg-video-copy small {
    flex: 0 0 auto;
    color: #bfaed8;
}

.gmrg-video-empty {
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 760px;
    margin: auto;
    padding: 18px 22px;
    border: 1px dashed rgba(183, 145, 233, .38);
    border-radius: 14px;
    background: rgba(255, 255, 255, .035);
}

.gmrg-video-empty > span {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 50%;
    background: #7544a7;
}

.gmrg-video-empty h3,
.gmrg-video-empty p {
    margin: 0 !important;
}

.gmrg-video-empty h3 {
    color: #fff !important;
}

.gmrg-video-empty p {
    color: #c8bddb !important;
}

.gmrg-video-empty a {
    margin-left: auto;
    padding: 9px 14px;
    border-radius: 9px;
    color: #fff !important;
    background: #7544a7;
    text-decoration: none !important;
}

.gmrg-category-index {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 28px;
    padding: 13px;
    border: 1px solid rgba(159, 119, 216, .21);
    border-radius: 14px;
    background: rgba(10, 25, 56, .78);
}

.gmrg-category-index a {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 9px;
    color: #dcd3eb !important;
    text-decoration: none !important;
    background: rgba(255, 255, 255, .035);
}

.gmrg-category-index a:hover {
    background: rgba(119, 70, 167, .34);
}

.gmrg-category-index small {
    display: grid;
    min-width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 50%;
    background: rgba(145, 92, 202, .45);
}

.gmr-gallery-page .gmrg-cta {
    margin-top: 0 !important;
}

@media (max-width: 980px) {
    .gmrg-lead-collection {
        grid-template-columns: 1fr;
    }

    .gmrg-lead-photo {
        min-height: 280px;
    }

    .gmrg-mosaic {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 180px);
    }

    .gmrg-mosaic-card--1,
    .gmrg-mosaic-card--4 {
        grid-row: auto;
    }

    .gmrg-mosaic-card--5,
    .gmrg-mosaic-card--6,
    .gmrg-mosaic-card--7 {
        grid-column: auto;
    }

    .gmrg-video-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gmrg-video-card.is-featured {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .gmr-gallery-page .gmrg-shell {
        width: min(calc(100vw - 22px), 1320px) !important;
    }

    .gmr-gallery-page .gmrg-hero--editorial {
        height: 260px !important;
    }

    .gmr-gallery-page .gmrg-hero--editorial .gmrg-hero-copy {
        width: 100% !important;
        padding: 34px 24px !important;
    }

    .gmrg-lead-copy,
    .gmrg-mosaic-section,
    .gmrg-videos {
        padding: 22px;
    }

    .gmrg-mosaic {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(7, 210px);
    }

    .gmrg-video-grid {
        grid-template-columns: 1fr;
    }

    .gmrg-video-card.is-featured {
        grid-column: auto;
    }

    .gmrg-video-empty {
        align-items: flex-start;
        flex-direction: column;
    }

    .gmrg-video-empty a {
        margin-left: 0;
    }
}
