/* =========================================================
   Gallery Page
   Scoped styles only - does not alter global site components.
   ========================================================= */

.rs-gallery-section,
.rs-video-section,
.rs-gallery-info,
.rs-gallery-related {
    padding: 80px 0;
}

.rs-gallery-section {
    background: #ffffff;
}

.rs-video-section,
.rs-gallery-related {
    background: #f7f9fc;
}

.rs-gallery-info {
    background: #ffffff;
}

.rs-container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.rs-section-heading {
    max-width: 820px;
    margin: 0 auto 45px;
    text-align: center;
}

.rs-section-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #f87601;
}

.rs-section-heading h2 {
    margin: 0 0 15px;
    color: #17243a;
    font-size: 34px;
    line-height: 1.25;
}

.rs-section-heading p {
    max-width: 760px;
    margin: 0 auto;
    color: #687386;
    font-size: 16px;
    line-height: 1.75;
}


/* =========================================================
   IMAGE GALLERY
   ========================================================= */

.rs-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.rs-gallery-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e9ef;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(23, 36, 58, .07);
    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.rs-gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 35px rgba(23, 36, 58, .12);
}

.rs-gallery-image-link {
    display: block;
    text-decoration: none;
}

.rs-gallery-image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #eef2f6;
}

.rs-gallery-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.rs-gallery-card:hover .rs-gallery-image-wrap img {
    transform: scale(1.03);
}

.rs-gallery-overlay {
    position: absolute;
    right: 16px;
    bottom: 16px;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(23, 36, 58, .88);
    color: #ffffff;

    opacity: 0;
    transform: translateY(5px);
    transition:
        opacity .25s ease,
        transform .25s ease;
}

.rs-gallery-card:hover .rs-gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.rs-gallery-card-content {
    padding: 22px 24px 24px;
}

.rs-gallery-card-content h3 {
    margin: 0 0 8px;
    color: #17243a;
    font-size: 19px;
    line-height: 1.4;
}

.rs-gallery-card-content p {
    margin: 0;
    color: #687386;
    font-size: 14px;
    line-height: 1.65;
}


/* =========================================================
   VIDEO SECTION
   ========================================================= */

.rs-video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    max-width: 1000px;
    margin: 0 auto;
}

.rs-video-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e9ef;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(23, 36, 58, .07);
}

.rs-video-preview {
    position: relative;
    background: #eef2f6;
}

.rs-video-preview a {
    position: relative;
    display: block;
}

.rs-video-preview img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.rs-video-play {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 64px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-left: -32px;
    margin-top: -32px;

    border-radius: 50%;
    background: rgba(11, 99, 206, .92);
    color: #ffffff;

    font-size: 21px;
}

.rs-video-content {
    padding: 25px;
}

.rs-video-number {
    display: block;
    margin-bottom: 7px;
    color: #0b63ce;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.rs-video-content h3 {
    margin: 0 0 10px;
    color: #17243a;
    font-size: 21px;
    line-height: 1.4;
}

.rs-video-content p {
    margin: 0 0 20px;
    color: #687386;
    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   INFORMATION SECTION
   ========================================================= */

.rs-gallery-info-card {
    max-width: 920px;
    margin: 0 auto;
    padding: 40px;

    background: #f8fafc;
    border: 1px solid #e5e9ef;
    border-radius: 16px;

    box-shadow: 0 8px 25px rgba(23, 36, 58, .05);
}

.rs-gallery-info-card h2 {
    margin: 0 0 18px;
    color: #17243a;
    font-size: 30px;
    line-height: 1.3;
}

.rs-gallery-info-card p {
    margin: 0 0 17px;
    color: #596577;
    font-size: 16px;
    line-height: 1.8;
}

.rs-gallery-info-card p:last-of-type {
    margin-bottom: 25px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.rs-gallery-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.rs-gallery-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;
    padding: 11px 22px;

    border-radius: 6px;

    background: #f87601;
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;
    text-decoration: none;

    transition:
        background .2s ease,
        transform .2s ease;
}

.rs-gallery-btn:hover {
    background: #f87601;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

.rs-gallery-btn--outline {
    background: transparent;
    color: #0b63ce;
    border: 1px solid #0b63ce;
}

.rs-gallery-btn--outline:hover {
    background: #0b63ce;
    color: #ffffff;
}


/* =========================================================
   RELATED SERVICES
   ========================================================= */

.rs-related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.rs-related-card {
    display: flex;
    flex-direction: column;

    min-height: 210px;
    padding: 25px;

    background: #ffffff;
    border: 1px solid #e5e9ef;
    border-radius: 13px;

    text-decoration: none;

    box-shadow: 0 7px 22px rgba(23, 36, 58, .05);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.rs-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(23, 36, 58, .10);
}

.rs-related-card h3 {
    margin: 0 0 11px;
    color: #17243a;
    font-size: 19px;
    line-height: 1.35;
}

.rs-related-card p {
    flex: 1;
    margin: 0 0 18px;
    color: #687386;
    font-size: 14px;
    line-height: 1.65;
}

.rs-related-card span {
    color: #f87601;
    font-size: 14px;
    font-weight: 700;
}


/* =========================================================
   CTA
   ========================================================= */

.rs-gallery-cta {
    padding: 70px 0;
    background: #17243a;
}

.rs-gallery-cta-inner {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.rs-gallery-cta .rs-section-eyebrow {
    color: #ffffff;
}

.rs-gallery-cta h2 {
    margin: 0 0 15px;
    color: #ffffff;
    font-size: 34px;
    line-height: 1.3;
}

.rs-gallery-cta p {
    max-width: 720px;
    margin: 0 auto 25px;
    color: rgba(255, 255, 255, .82);
    font-size: 16px;
    line-height: 1.75;
}

.rs-gallery-cta .rs-gallery-links {
    justify-content: center;
}

.rs-gallery-cta .rs-gallery-btn--outline {
    border-color: #ffffff;
    color: #ffffff;
}

.rs-gallery-cta .rs-gallery-btn--outline:hover {
    background: #ffffff;
    color: #17243a;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.rs-gallery-empty {
    max-width: 700px;
    margin: 0 auto;
    padding: 45px;
    text-align: center;

    background: #f8fafc;
    border: 1px solid #e5e9ef;
    border-radius: 14px;
}

.rs-gallery-empty p {
    margin: 0;
    color: #687386;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991px) {

    .rs-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rs-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rs-video-grid {
        grid-template-columns: 1fr;
        max-width: 700px;
    }

}

@media (max-width: 767px) {

    .rs-gallery-section,
    .rs-video-section,
    .rs-gallery-info,
    .rs-gallery-related {
        padding: 55px 0;
    }

    .rs-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .rs-section-heading {
        margin-bottom: 32px;
    }

    .rs-section-heading h2 {
        font-size: 28px;
    }

    .rs-gallery-grid,
    .rs-related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .rs-video-grid {
        gap: 20px;
    }

    .rs-video-preview img {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .rs-gallery-info-card {
        padding: 28px 22px;
    }

    .rs-gallery-info-card h2 {
        font-size: 26px;
    }

    .rs-gallery-links {
        flex-direction: column;
    }

    .rs-gallery-btn {
        width: 100%;
        box-sizing: border-box;
    }

    .rs-gallery-cta {
        padding: 55px 0;
    }

    .rs-gallery-cta h2 {
        font-size: 28px;
    }

}

@media (prefers-reduced-motion: reduce) {

    .rs-gallery-card,
    .rs-gallery-image-wrap img,
    .rs-gallery-overlay,
    .rs-related-card,
    .rs-gallery-btn {
        transition: none;
    }

}
