/* =========================================================
   RIGHT TRACK KOLKATA
   PROGRAM INTERNAL PAGE
   PREMIUM RESPONSIVE DESIGN
   ========================================================= */


/* =========================================================
   PAGE BACKGROUND
   ========================================================= */

.rt-program-page {

    background:
        radial-gradient(
            circle at 5% 15%,
            rgba(212,123,37,.055),
            transparent 25%
        ),
        radial-gradient(
            circle at 95% 80%,
            rgba(212,123,37,.045),
            transparent 28%
        ),
        #f7f3ee;

    color: #3f3f3f;
}


/* =========================================================
   PROGRAM PAGE HEADER
   ========================================================= */

.rt-program-page-header {

    position: relative;

    background-image:
        url('../images/backgrounds/page-header-bg.jpg');

    background-size: cover;

    background-position: center center;

    overflow: hidden;
}


.rt-program-page-header-overlay {

    position: relative;

    padding: 78px 0 70px;

    background:
        linear-gradient(
            135deg,
            rgba(31,49,65,.91),
            rgba(31,49,65,.72)
        );

}


.rt-program-page-header-overlay:after {

    content: "";

    position: absolute;

    width: 230px;

    height: 230px;

    right: 5%;

    top: -100px;

    border-radius: 50%;

    background:
        rgba(212,123,37,.12);

}


.rt-program-page-header h1 {

    position: relative;

    z-index: 2;

    margin: 17px 0 0;

    color: #ffffff;

    font-size: 42px;

    line-height: 1.2;

    font-weight: 700;

    letter-spacing: -.3px;

    text-shadow:
        0 2px 8px rgba(0,0,0,.35);

}


.rt-program-breadcrumb {

    position: relative;

    z-index: 3;

    color: rgba(255,255,255,.90);

    font-size: 14px;

}


.rt-program-breadcrumb span {

    display: inline-block;

}


.rt-program-breadcrumb a {

    color: #ffffff;

    font-weight: 600;

    text-decoration: none;

}


.rt-program-breadcrumb a:hover {

    color: #f2a45d;

}


.rt-program-breadcrumb i {

    margin: 0 9px;

    color: #e29a51;

}


/* =========================================================
   MAIN INNER PAGE AREA
   ========================================================= */

.rt-program-content-section {

    position: relative;

    padding: 65px 0 80px;

    background:
        linear-gradient(
            180deg,
            #f7f3ee 0%,
            #faf7f3 48%,
            #f6f1eb 100%
        );

}


.rt-program-content-section:before {

    content: "";

    position: absolute;

    left: 0;

    right: 0;

    top: 0;

    height: 1px;

    background:
        rgba(212,123,37,.15);

}


/* =========================================================
   TWO COLUMN ROW
   ========================================================= */

.rt-program-main-row {

    display: flex;

    align-items: flex-start;

    flex-wrap: wrap;

}


/* =========================================================
   LEFT CONTENT COLUMN
   ========================================================= */

.rt-program-content {

    position: relative;

    margin-right: 15px;

    padding: 35px 38px 38px;

    background:
        rgba(255,255,255,.97);

    border-radius: 13px;

    border:
        1px solid rgba(212,123,37,.13);

    box-shadow:
        0 12px 35px rgba(60,45,30,.075),
        0 3px 9px rgba(60,45,30,.035);

    overflow: hidden;

}


/* Top thematic strip */

.rt-program-content:before {

    content: "";

    position: absolute;

    left: 0;

    right: 0;

    top: 0;

    height: 5px;

    background:
        linear-gradient(
            90deg,
            #d47b25,
            #e4a05c,
            rgba(228,160,92,.15)
        );

}


/* Decorative circle */

.rt-program-content:after {

    content: "";

    position: absolute;

    right: -70px;

    top: -70px;

    width: 170px;

    height: 170px;

    border-radius: 50%;

    background:
        rgba(212,123,37,.045);

    pointer-events: none;

}


/* =========================================================
   CONTENT HEADING
   ========================================================= */

.rt-program-content-heading {

    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    margin-bottom: 27px;

    padding-bottom: 19px;

    border-bottom:
        1px solid rgba(212,123,37,.18);

}


.rt-program-heading-icon {

    width: 55px;

    height: 55px;

    min-width: 55px;

    margin-right: 15px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background:
        rgba(212,123,37,.10);

    border:
        2px solid rgba(212,123,37,.23);

    box-shadow:
        0 4px 12px rgba(212,123,37,.08);

}


.rt-program-heading-icon i {

    color: #d47b25;

    font-size: 22px;

}


.rt-program-content-heading h2 {

    margin: 0;

    color: #263746;

    font-size: 29px;

    line-height: 1.3;

    font-weight: 700;

}


/* =========================================================
   CKEDITOR CONTENT
   ========================================================= */

.rt-program-content-body {

    position: relative;

    z-index: 2;

    color: #444444;

    font-size: 16px;

    line-height: 1.88;

    word-wrap: break-word;

    overflow-wrap: break-word;

}


/* JUSTIFIED TEXT */

.rt-program-content-body p,

.rt-program-content-body div,

.rt-program-content-body li,

.rt-program-content-body td,

.rt-program-content-body th {

    text-align: justify;

}


/* Paragraphs */

.rt-program-content-body p {

    margin: 0 0 19px;

}


/* Headings */

.rt-program-content-body h1,
.rt-program-content-body h2,
.rt-program-content-body h3,
.rt-program-content-body h4,
.rt-program-content-body h5,
.rt-program-content-body h6 {

    color: #263746;

    line-height: 1.4;

    font-weight: 700;

    margin-top: 28px;

    margin-bottom: 14px;

}


.rt-program-content-body h2 {

    font-size: 26px;

    padding-left: 13px;

    border-left:
        4px solid #d47b25;

}


.rt-program-content-body h3 {

    font-size: 22px;

}


.rt-program-content-body h4 {

    font-size: 19px;

}


/* Lists */

.rt-program-content-body ul,
.rt-program-content-body ol {

    margin-bottom: 22px;

    padding-left: 27px;

}


.rt-program-content-body li {

    margin-bottom: 8px;

    line-height: 1.75;

}


.rt-program-content-body li::marker {

    color: #d47b25;

}


/* Bold */

.rt-program-content-body strong,
.rt-program-content-body b {

    color: #263746;

    font-weight: 700;

}


/* Links */

.rt-program-content-body a {

    color: #c56b19;

    font-weight: 600;

}


.rt-program-content-body a:hover {

    color: #914b0e;

}


/* Blockquote */

.rt-program-content-body blockquote {

    margin: 25px 0;

    padding: 18px 22px;

    color: #555555;

    background:
        rgba(212,123,37,.055);

    border-left:
        4px solid #d47b25;

    border-radius:
        0 7px 7px 0;

}


/* CKEditor images */

.rt-program-content-body img {

    max-width: 100%;

    height: auto;

    border-radius: 7px;

}


/* Tables */

.rt-program-content-body table {

    width: 100%;

    max-width: 100%;

    margin: 22px 0;

    border-collapse: collapse;

}


.rt-program-content-body table th,
.rt-program-content-body table td {

    padding: 10px 12px;

    border:
        1px solid #e0d8d0;

}


.rt-program-content-body table th {

    background: #fbf5ee;

    color: #263746;

    font-weight: 700;

}


/* Horizontal line */

.rt-program-content-body hr {

    border: 0;

    border-top:
        1px solid #e6ddd4;

    margin: 28px 0;

}


/* =========================================================
   RIGHT GALLERY OUTER CARD
   ========================================================= */

.rt-program-gallery-wrapper {

    position: relative;

    margin-left: 15px;

    padding: 25px 23px 27px;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(212,123,37,.085),
            transparent 31%
        ),
        radial-gradient(
            circle at 0% 100%,
            rgba(222,185,142,.085),
            transparent 32%
        ),
        rgba(255,253,250,.92);

    border:
        1px solid rgba(212,123,37,.16);

    border-radius: 14px;

    box-shadow:
        0 12px 32px rgba(60,45,30,.075),
        inset 0 0 35px rgba(212,123,37,.025);

}


/* =========================================================
   GALLERY HEADING
   ========================================================= */

.rt-program-gallery-heading {

    display: flex;

    align-items: center;

    margin-bottom: 21px;

    padding-bottom: 16px;

    border-bottom:
        1px solid rgba(212,123,37,.17);

}


.rt-gallery-heading-icon {

    width: 49px;

    height: 49px;

    min-width: 49px;

    margin-right: 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background:
        rgba(212,123,37,.09);

    border:
        2px solid rgba(212,123,37,.22);

}


.rt-gallery-heading-icon i {

    color: #d47b25;

    font-size: 20px;

}


.rt-program-gallery-heading h3 {

    margin: 0 0 3px;

    color: #263746;

    font-size: 22px;

    line-height: 1.3;

    font-weight: 700;

}


.rt-program-gallery-heading p {

    margin: 0;

    color: #777777;

    font-size: 13px;

    line-height: 1.5;

}


/* =========================================================
   GALLERY GRID
   ========================================================= */

.rt-program-gallery {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    grid-auto-rows: 105px;

    grid-auto-flow: dense;

    gap: 12px;

}


/* =========================================================
   GALLERY ITEM
   ========================================================= */

.rt-program-gallery-item {

    position: relative;

    display: block;

    min-width: 0;

    overflow: hidden;

    border-radius: 8px;

    background: #f8f5f1;

    border:
        1px solid rgba(212,123,37,.13);

    text-decoration: none !important;

    box-shadow:
        0 5px 15px rgba(60,45,30,.08);

    transition:
        transform .35s ease,
        box-shadow .35s ease;

}


/* Very light alternating thematic tones */

.rt-program-gallery-item:nth-child(4n+1) {

    background: #fffaf5;

    border-color:
        rgba(212,123,37,.18);

}


.rt-program-gallery-item:nth-child(4n+2) {

    background: #f8faf8;

    border-color:
        rgba(113,147,125,.16);

}


.rt-program-gallery-item:nth-child(4n+3) {

    background: #fbf9f2;

    border-color:
        rgba(188,155,93,.18);

}


.rt-program-gallery-item:nth-child(4n+4) {

    background: #f8f8fa;

    border-color:
        rgba(125,133,160,.15);

}


.rt-program-gallery-item:hover {

    z-index: 5;

    transform:
        translateY(-4px);

    box-shadow:
        0 13px 27px rgba(212,123,37,.18),
        0 3px 8px rgba(60,45,30,.06);

}


/* =========================================================
   HAPHAZARD / DIFFERENT IMAGE SIZES
   ========================================================= */

.rt-gallery-item-1 {

    grid-row:
        span 3;

}


.rt-gallery-item-2 {

    grid-row:
        span 2;

}


.rt-gallery-item-3 {

    grid-row:
        span 2;

}


.rt-gallery-item-4 {

    grid-row:
        span 3;

}


.rt-gallery-item-5 {

    grid-row:
        span 2;

}


.rt-gallery-item-6 {

    grid-row:
        span 2;

}


/* =========================================================
   IMAGE
   ========================================================= */

.rt-program-gallery-image {

    position: absolute;

    inset: 0;

    overflow: hidden;

}


.rt-program-gallery-image img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform .65s cubic-bezier(.2,.7,.2,1),
        filter .45s ease;

}


.rt-program-gallery-item:hover
.rt-program-gallery-image img {

    transform:
        scale(1.08);

    filter:
        brightness(.80)
        saturate(1.05);

}


/* =========================================================
   ZOOM ICON
   ========================================================= */

.rt-gallery-hover {

    position: absolute;

    top: 50%;

    left: 50%;

    width: 48px;

    height: 48px;

    margin-left: -24px;

    margin-top: -24px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background:
        rgba(212,123,37,.93);

    color: #ffffff;

    opacity: 0;

    transform:
        scale(.65);

    transition:
        opacity .3s ease,
        transform .3s ease;

}


.rt-gallery-hover i {

    color: #ffffff;

    font-size: 18px;

}


.rt-program-gallery-item:hover
.rt-gallery-hover {

    opacity: 1;

    transform:
        scale(1);

}


/* =========================================================
   IMAGE CAPTION
   ========================================================= */

.rt-gallery-caption {

    position: absolute;

    left: 0;

    right: 0;

    bottom: 0;

    z-index: 4;

    padding: 32px 11px 10px;

    color: #ffffff;

    font-size: 12px;

    line-height: 1.4;

    text-align: justify;

    background:
        linear-gradient(
            to top,
            rgba(25,30,34,.78),
            rgba(25,30,34,.42),
            transparent
        );

    opacity: 0;

    transition:
        opacity .3s ease;

}


.rt-program-gallery-item:hover
.rt-gallery-caption {

    opacity: 1;

}


/* =========================================================
   EMPTY CONTENT / GALLERY
   ========================================================= */

.rt-program-empty-content,
.rt-program-no-gallery {

    padding: 35px 22px;

    text-align: center;

    color: #777777;

    background:
        rgba(255,255,255,.65);

    border:
        1px dashed #ddcfc1;

    border-radius: 8px;

}


.rt-program-empty-content i,
.rt-program-no-gallery i {

    display: block;

    margin-bottom: 12px;

    color: #d47b25;

    font-size: 34px;

}


.rt-program-empty-content p,
.rt-program-no-gallery p {

    margin: 0;

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

    .rt-program-page-header-overlay {

        padding: 65px 0 55px;

    }


    .rt-program-page-header h1 {

        font-size: 36px;

    }


    .rt-program-content {

        margin-right: 0;

        margin-bottom: 35px;

    }


    .rt-program-gallery-wrapper {

        margin-left: 0;

    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .rt-program-page-header-overlay {

        padding: 50px 0 45px;

    }


    .rt-program-page-header h1 {

        font-size: 30px;

    }


    .rt-program-content-section {

        padding: 42px 0 55px;

    }


    .rt-program-content {

        padding: 28px 22px 32px;

        border-radius: 11px;

    }


    .rt-program-content-heading h2 {

        font-size: 24px;

    }


    .rt-program-content-body {

        font-size: 15px;

        line-height: 1.82;

    }


    .rt-program-gallery-wrapper {

        padding: 21px 16px 23px;

        border-radius: 11px;

    }


    .rt-program-gallery {

        grid-auto-rows: 100px;

        gap: 10px;

    }


    .rt-program-gallery-heading h3 {

        font-size: 20px;

    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .rt-program-content-heading {

        align-items: flex-start;

    }


    .rt-program-heading-icon {

        width: 46px;

        height: 46px;

        min-width: 46px;

    }


    .rt-program-content-heading h2 {

        font-size: 21px;

    }


    .rt-program-gallery {

        grid-template-columns:
            repeat(2, minmax(0,1fr));

        grid-auto-rows: 95px;

        gap: 9px;

    }

}




/* =========================================================
   RIGHT TRACK PROGRAM PAGE
   GALLERY - FINAL UNIFORM IMAGE DESIGN
   Replace the previous gallery override block with this
   ========================================================= */


/* ---------------------------------------------------------
   GALLERY OUTER PANEL
   --------------------------------------------------------- */

.rt-program-gallery-wrapper {
    position: relative;
    width: 100%;
    padding: 20px;
    margin: 0;

    background: rgba(255, 255, 255, 0.97);

    border: 1px solid rgba(212, 123, 37, 0.18);
    border-radius: 16px;

    box-shadow:
        0 10px 28px rgba(55, 43, 32, 0.08),
        0 2px 8px rgba(212, 123, 37, 0.07);

    box-sizing: border-box;
}


/* ---------------------------------------------------------
   GALLERY HEADING
   --------------------------------------------------------- */

.rt-program-gallery-heading {
    display: flex;
    align-items: center;

    width: 100%;
    margin: 0 0 18px 0;
    padding: 0 0 14px 0;

    border-bottom: 1px solid rgba(212, 123, 37, 0.16);

    box-sizing: border-box;
}


.rt-gallery-heading-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 12px;

    border-radius: 50%;

    background: rgba(212, 123, 37, 0.10);
    border: 1px solid rgba(212, 123, 37, 0.22);

    color: #d47b25 !important;

    font-size: 18px;
    line-height: 1;

    box-shadow:
        0 4px 12px rgba(212, 123, 37, 0.10);
}


.rt-program-gallery-heading h3 {
    margin: 0 0 3px 0;

    color: #3f3024 !important;

    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
}


.rt-program-gallery-heading p {
    margin: 0;

    color: #806f60 !important;

    font-size: 12px;
    line-height: 1.4;
}


/* ---------------------------------------------------------
   GALLERY GRID
   --------------------------------------------------------- */

.rt-program-gallery {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 16px;

    width: 100%;

    align-items: start;

    box-sizing: border-box;
}


/* ---------------------------------------------------------
   INDIVIDUAL IMAGE CARD
   --------------------------------------------------------- */

.rt-program-gallery-item {
    position: relative;

    display: block;

    width: 100%;

    overflow: hidden;

    background: #ffffff;

    text-decoration: none !important;

    border: 1px solid rgba(212, 123, 37, 0.24);

    border-radius: 12px;

    box-shadow:
        0 5px 15px rgba(50, 40, 30, 0.10),
        0 0 0 2px rgba(212, 123, 37, 0.035),
        0 3px 10px rgba(212, 123, 37, 0.08);

    box-sizing: border-box;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}


/* ---------------------------------------------------------
   LIGHT VARIATION OF INDIVIDUAL BORDERS
   --------------------------------------------------------- */

.rt-program-gallery-item:nth-child(4n+1) {
    border-color: rgba(212, 123, 37, 0.30);

    box-shadow:
        0 5px 15px rgba(50, 40, 30, 0.09),
        0 0 0 2px rgba(212, 123, 37, 0.035),
        0 3px 12px rgba(212, 123, 37, 0.09);
}

.rt-program-gallery-item:nth-child(4n+2) {
    border-color: rgba(90, 132, 96, 0.28);

    box-shadow:
        0 5px 15px rgba(50, 40, 30, 0.09),
        0 0 0 2px rgba(90, 132, 96, 0.035),
        0 3px 12px rgba(90, 132, 96, 0.08);
}

.rt-program-gallery-item:nth-child(4n+3) {
    border-color: rgba(192, 133, 62, 0.28);

    box-shadow:
        0 5px 15px rgba(50, 40, 30, 0.09),
        0 0 0 2px rgba(192, 133, 62, 0.035),
        0 3px 12px rgba(192, 133, 62, 0.08);
}

.rt-program-gallery-item:nth-child(4n+4) {
    border-color: rgba(104, 126, 145, 0.25);

    box-shadow:
        0 5px 15px rgba(50, 40, 30, 0.09),
        0 0 0 2px rgba(104, 126, 145, 0.035),
        0 3px 12px rgba(104, 126, 145, 0.07);
}


/* ---------------------------------------------------------
   UNIFORM IMAGE FRAME
   ALL IMAGES EXACTLY SAME HEIGHT
   --------------------------------------------------------- */

.rt-program-gallery-image {
    position: relative;

    width: 100%;
    height: 165px;

    overflow: hidden;

    background: #eee8e1;

    box-sizing: border-box;
}


/* ---------------------------------------------------------
   REMOVE ALL PREVIOUS VARIABLE IMAGE HEIGHTS
   --------------------------------------------------------- */

.rt-gallery-item-1 .rt-program-gallery-image,
.rt-gallery-item-2 .rt-program-gallery-image,
.rt-gallery-item-3 .rt-program-gallery-image,
.rt-gallery-item-4 .rt-program-gallery-image,
.rt-gallery-item-5 .rt-program-gallery-image,
.rt-gallery-item-6 .rt-program-gallery-image {
    height: 165px;
}


/* ---------------------------------------------------------
   IMAGE ITSELF
   --------------------------------------------------------- */

.rt-program-gallery-image img {
    display: block;

    width: 100%;
    height: 100%;

    max-width: none;

    margin: 0;
    padding: 0;

    border: 0;

    object-fit: cover;
    object-position: center center;

    background: #eee8e1;

    transition:
        transform 0.55s cubic-bezier(.2, .7, .2, 1),
        filter 0.45s ease;
}


/* ---------------------------------------------------------
   IMAGE INNER HIGHLIGHT
   --------------------------------------------------------- */

.rt-program-gallery-image {
    border-bottom: 1px solid rgba(212, 123, 37, 0.10);
}


/* ---------------------------------------------------------
   SUBTLE IMAGE OVERLAY
   --------------------------------------------------------- */

.rt-program-gallery-image::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 45%;

    background: linear-gradient(
        to top,
        rgba(35, 25, 18, 0.28),
        rgba(35, 25, 18, 0)
    );

    opacity: 0.35;

    pointer-events: none;

    z-index: 1;

    transition: opacity 0.35s ease;
}


/* ---------------------------------------------------------
   HOVER SEARCH ICON
   --------------------------------------------------------- */

.rt-gallery-hover {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform:
        translate(-50%, -50%)
        scale(0.70);

    opacity: 0;

    border-radius: 50%;

    background: rgba(212, 123, 37, 0.94);

    color: #ffffff !important;

    font-size: 16px;
    line-height: 1;

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.22);

    transition:
        opacity 0.30s ease,
        transform 0.35s ease;

    z-index: 4;
}


/* ---------------------------------------------------------
   HOVER EFFECT
   --------------------------------------------------------- */

.rt-program-gallery-item:hover {
    transform: translateY(-5px);

    border-color: rgba(212, 123, 37, 0.48);

    box-shadow:
        0 13px 28px rgba(55, 43, 32, 0.16),
        0 0 0 2px rgba(212, 123, 37, 0.06),
        0 5px 16px rgba(212, 123, 37, 0.14);
}


.rt-program-gallery-item:hover .rt-program-gallery-image img {
    transform: scale(1.07);

    filter: saturate(1.06);
}


.rt-program-gallery-item:hover .rt-gallery-hover {
    opacity: 1;

    transform:
        translate(-50%, -50%)
        scale(1);
}


.rt-program-gallery-item:hover .rt-program-gallery-image::after {
    opacity: 0.70;
}


/* ---------------------------------------------------------
   CAPTION
   --------------------------------------------------------- */

.rt-gallery-caption {
    display: block;

    min-height: 34px;

    padding: 9px 10px 10px;

    background: #ffffff;

    color: #625448 !important;

    font-size: 12px;
    font-weight: 500;

    line-height: 1.4;

    text-align: left;

    border-top: 1px solid rgba(212, 123, 37, 0.08);

    box-sizing: border-box;
}


.rt-program-gallery-item .rt-gallery-caption:empty {
    display: none;
}


/* ---------------------------------------------------------
   LINK RESET
   --------------------------------------------------------- */

.rt-program-gallery-item,
.rt-program-gallery-item:hover,
.rt-program-gallery-item:focus,
.rt-program-gallery-item:active {
    text-decoration: none !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

    .rt-program-gallery-wrapper {
        margin-top: 28px;
        padding: 20px;
    }


    .rt-program-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }


    .rt-program-gallery-image,
    .rt-gallery-item-1 .rt-program-gallery-image,
    .rt-gallery-item-2 .rt-program-gallery-image,
    .rt-gallery-item-3 .rt-program-gallery-image,
    .rt-gallery-item-4 .rt-program-gallery-image,
    .rt-gallery-item-5 .rt-program-gallery-image,
    .rt-gallery-item-6 .rt-program-gallery-image {
        height: 175px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .rt-program-gallery-wrapper {
        padding: 16px;
        border-radius: 13px;
    }


    .rt-program-gallery-heading {
        margin-bottom: 14px;
    }


    .rt-gallery-heading-icon {
        width: 39px;
        height: 39px;
        min-width: 39px;

        font-size: 16px;
    }


    .rt-program-gallery-heading h3 {
        font-size: 19px;
    }


    .rt-program-gallery-heading p {
        font-size: 11px;
    }


    .rt-program-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }


    .rt-program-gallery-image,
    .rt-gallery-item-1 .rt-program-gallery-image,
    .rt-gallery-item-2 .rt-program-gallery-image,
    .rt-gallery-item-3 .rt-program-gallery-image,
    .rt-gallery-item-4 .rt-program-gallery-image,
    .rt-gallery-item-5 .rt-program-gallery-image,
    .rt-gallery-item-6 .rt-program-gallery-image {
        height: 140px;
    }


    .rt-gallery-caption {
        min-height: 31px;

        padding: 7px 8px;

        font-size: 11px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .rt-program-gallery {
        grid-template-columns: 1fr;
        gap: 13px;
    }


    .rt-program-gallery-image,
    .rt-gallery-item-1 .rt-program-gallery-image,
    .rt-gallery-item-2 .rt-program-gallery-image,
    .rt-gallery-item-3 .rt-program-gallery-image,
    .rt-gallery-item-4 .rt-program-gallery-image,
    .rt-gallery-item-5 .rt-program-gallery-image,
    .rt-gallery-item-6 .rt-program-gallery-image {
        height: 210px;
    }


    .rt-gallery-caption {
        font-size: 12px;
    }

}



/* =========================================================
   FINAL GALLERY CARD REFINEMENT
   Smaller padding + clearer colored image border
   ========================================================= */

.rt-program-gallery {
    gap: 12px;
}

.rt-program-gallery-item {
    padding: 4px;

    background: #ffffff;

    border: 1px solid rgba(212, 123, 37, 0.38);
    border-radius: 11px;

    box-shadow:
        0 4px 13px rgba(50, 40, 30, 0.10),
        0 0 0 1px rgba(212, 123, 37, 0.04),
        0 3px 10px rgba(212, 123, 37, 0.08);
}


/* Individual light thematic border colors */

.rt-program-gallery-item:nth-child(4n+1) {
    border-color: rgba(212, 123, 37, 0.42);
}

.rt-program-gallery-item:nth-child(4n+2) {
    border-color: rgba(90, 132, 96, 0.38);
}

.rt-program-gallery-item:nth-child(4n+3) {
    border-color: rgba(192, 133, 62, 0.40);
}

.rt-program-gallery-item:nth-child(4n+4) {
    border-color: rgba(104, 126, 145, 0.35);
}


/* Image sits neatly inside the colored frame */

.rt-program-gallery-image {
    width: 100%;
    height: 165px;

    border-radius: 7px;
    overflow: hidden;

    border: 0;
}


/* Keep image exactly inside the frame */

.rt-program-gallery-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* Caption stays inside the compact card */

.rt-gallery-caption {
    margin: 0;
    padding: 7px 8px 6px;

    min-height: 31px;

    border-top: 0;

    border-radius: 0 0 7px 7px;
}


/* Slightly stronger but still elegant hover */

.rt-program-gallery-item:hover {
    border-color: rgba(212, 123, 37, 0.58);

    box-shadow:
        0 10px 23px rgba(55, 43, 32, 0.14),
        0 0 0 2px rgba(212, 123, 37, 0.06),
        0 4px 13px rgba(212, 123, 37, 0.13);
}


/* Tablet */

@media (max-width: 991px) {

    .rt-program-gallery {
        gap: 11px;
    }

    .rt-program-gallery-item {
        padding: 4px;
    }

    .rt-program-gallery-image {
        height: 175px;
    }
}


/* Mobile */

@media (max-width: 600px) {

    .rt-program-gallery {
        gap: 9px;
    }

    .rt-program-gallery-item {
        padding: 3px;
        border-radius: 9px;
    }

    .rt-program-gallery-image {
        height: 140px;
        border-radius: 6px;
    }

}


/* Very small mobile */

@media (max-width: 420px) {

    .rt-program-gallery {
        gap: 11px;
    }

    .rt-program-gallery-item {
        padding: 4px;
    }

    .rt-program-gallery-image {
        height: 210px;
    }

}

/* =========================================================
   END - FINAL UNIFORM GALLERY DESIGN
   ========================================================= */