/* ============= CUSTOM SPOTLIGHT V2 START ============= */
.custom-spotlight-v2 {
    width: 100%;
    padding-top: 2em;
    padding-bottom: 2em;
    box-sizing: border-box;
    position: relative;
    /* --bottom-bar-bg-image: url(https://cmsv2-shared-assets.apptegy.net/Schools/Socorro-ISD-3783/Images/bar-icons-pattern.png); */
    --bottom-bar-height: 210px;
    --bottom-bar-bg-color: var(--primary-color);
    --bottom-bar-text-color: #fff;
    --arrow-size: 60px;

    .header-slot-container {
        border: none;
    }
}

.custom-spotlight-v2 * {
    box-sizing: border-box;
}


.custom-spotlight-v2-list-wrap {
    z-index: 3;
}

.custom-spotlight-v2-item-image-wrap {
    position: relative;
    transition: all 1s linear;
}

.custom-spotlight-v2-item-image-wrap .custom-spotlight-v2-item-image {
    width: 100%;
    height: 585px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    transition: all 1s linear;
    overflow: hidden;
}

@media only screen and (max-width: 600px) {
    .custom-spotlight-v2-item-image-wrap .custom-spotlight-v2-item-image {
        height: 400px;
    }
}

.custom-spotlight-v2-item-image-wrap .custom-spotlight-v2-item-image img {
    max-height: 200%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    transform: scale(0.75);
    transition: all 1s linear;
    display: block;
}

.custom-spotlight-v2-item-image-wrap .activeClickedHack {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    display: none;
    cursor: pointer;
    background-color: transparent;
    border: none;
    outline: none;

    &:focus-visible {
        border: 1px dashed #cacaca;
        border-bottom: unset;
    }
}

.custom-spotlight-v2-item__bottom {
    color: var(--bottom-bar-text-color);
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    height: var(--bottom-bar-height);
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    z-index: -1;
    transition: all 1s linear;

    @media screen and (max-width: 960px) {
        max-width: calc(100% - 90px);
    }

    @media screen and (max-width: 599px) {
        max-width: 100%;
    }
}

.custom-spotlight-v2-item-name-wrap {
    font-size: 2em;
    font-weight: 700;
    margin-top: 0.25em;
    margin-bottom: 0.5em;

    @media screen and (max-width: 1199px) {
        font-size: 1.5em;
    }
}

@media only screen and (max-width: 960px) {
    .custom-spotlight-v2-item-name-wrap {
        font-size: 1.5em;
    }
}

.custom-spotlight-v2-item-button:not(:has(a)),
.custom-spotlight-v2-item-button a {
    display: block;
    font-size: 1.1em;
    padding: 0.5em 1em;
    border-radius: 0.5em;
    margin-top: 0.5em;
    text-decoration: none;
    color: var(--bottom-bar-bg-color);
    background-color: var(--bottom-bar-text-color);
    border: 2px solid var(--bottom-bar-text-color);
    cursor: pointer;
    transition: all 1s linear;

    @media screen and (max-width: 1199px) {
        font-size: 1em;
    }
}

.custom-spotlight-v2-item-button:not(:has(a)):hover,
.custom-spotlight-v2-item-button a:hover {
    color: var(--bottom-bar-text-color);
    background-color: var(--bottom-bar-bg-color);
}

@media only screen and (max-width: 960px) {
    .custom-spotlight-v2-item-button {
        font-size: 1em;
    }
}

.custom-spotlight-v2-item-school {
    font-weight: 500;
    margin-bottom: 0.5em;
    text-align: center;
    --font-size: 1.4em;
    --line-height: 1.2;
    --lines-to-show: 2;
    display: block;
    display: -webkit-box;
    font-size: var(--font-size);
    line-height: var(--line-height);
    height: calc(var(--line-height) * var(--lines-to-show));
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--lines-to-show);



    @media screen and (max-width: 1199px) {
        --font-size: 1em;
    }
}

.custom-spotlight-v2-item-school h1,
.custom-spotlight-v2-item-school h2,
.custom-spotlight-v2-item-school h3,
.custom-spotlight-v2-item-school h4,
.custom-spotlight-v2-item-school h5,
.custom-spotlight-v2-item-school h6 {
    font-size: inherit !important;
    font-weight: inherit;
}

@media only screen and (max-width: 960px) {
    .custom-spotlight-v2-item-school {
        font-size: 1.1em;
    }
}

.custom-spotlight-v2-item-description {
    width: 95%;
    max-height: 100%;
    font-size: 1.1em;
    text-align: center;
    padding: 0 1em;
    overflow: auto;
}

.custom-spotlight-v2-item-description::-webkit-scrollbar {
    width: 4px;
}

.custom-spotlight-v2-item-description::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.custom-spotlight-v2-item-description::-webkit-scrollbar-thumb {
    background: #a0a0a0;
    border-radius: 3px;
}

.custom-spotlight-v2-item-description::-webkit-scrollbar-thumb:hover {
    background: #888;
}

.custom-spotlight-v2-item-description p {
    padding-bottom: 0.75em;
    text-align: center !important;
}

.custom-spotlight-v2-item__hidden-left {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    width: 100%;
    height: 100px;
    bottom: var(--bottom-bar-height);
    right: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

@media only screen and (max-width: 960px) {
    .custom-spotlight-v2-item__hidden-left {
        display: none;
    }
}

.custom-spotlight-v2-item__hidden-right {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    width: 100%;
    height: 100px;
    bottom: var(--bottom-bar-height);
    left: 100%;
    padding: 1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.custom-spotlight-v2-item .closeExpanded {
    position: absolute;
    right: 32px;
    top: 32px;
    width: 36px;
    height: 36px;
    opacity: 0.3;
    display: none;
    z-index: 3;
    border: 1px solid transparent;
    border-radius: 2px;
    background-color: transparent;

    @media screen and (max-width: 599px) {
        top: 0;
        right: 10px;
    }
}

.custom-spotlight-v2-item .closeExpanded:after,
.custom-spotlight-v2-item .closeExpanded:before {
    content: close-quote;
    position: absolute;
    top: 0;
    left: 16px;
    height: 33px;
    width: 2px;
    background-color: #333;
}

.custom-spotlight-v2-item .closeExpanded:before {
    transform: rotate(45deg);
}

.custom-spotlight-v2-item .closeExpanded:after {
    transform: rotate(-45deg);
}

.custom-spotlight-v2 .custom-swiper-controls {
    height: 0;
    bottom: 0;
    display: block;
    color: var(--bottom-bar-text-color);
    margin-top: 0;
}

.custom-spotlight-v2 .custom-swiper-controls .custom-swiper-navigation {
    margin-top: 0;
}

.custom-spotlight-v2 .custom-swiper-controls .custom-swiper-pagination {
    display: none;
}

.custom-spotlight-v2 .custom-swiper-controls .custom-spotlight-v2-button-play-pause {
    width: 60px;
    height: 60px;
    position: absolute;
    left: 80px;
    bottom: calc(var(--bottom-bar-height) / 2 - 30px);
    background-color: transparent;
}

@media only screen and (max-width: 960px) {
    .custom-spotlight-v2 .custom-swiper-controls .custom-spotlight-v2-button-play-pause {
        display: none;
    }
}

.custom-spotlight-v2 .custom-swiper-controls .custom-spotlight-v2-button-prev,
.custom-spotlight-v2 .custom-swiper-controls .custom-spotlight-v2-button-next {
    position: absolute;
    width: var(--arrow-size);
    height: var(--arrow-size);
    bottom: calc(var(--bottom-bar-height) / 2 - 30px);

    @media screen and (max-width: 960px) {
        width: calc(var(--arrow-size) * .65);
        height: calc(var(--arrow-size) * .65)
    }

    @media screen and (max-width: 599px) {
        bottom: 15px;
    }
}

.custom-spotlight-v2 .custom-swiper-controls .swiper-button-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.custom-spotlight-v2 .custom-swiper-controls .custom-swiper-prev-5,
.custom-spotlight-v2 .custom-swiper-controls .custom-swiper-next-5 {
    --arrow-style-5-color: var(--bottom-bar-bg-color);
    --arrow-style-5-bg-color: var(--bottom-bar-text-color);
    width: 40px;
    height: 40px;
    bottom: calc(var(--bottom-bar-height) / 2 - 20px);

    @media screen and (max-width: 599px) {
        bottom: 15px;
    }
}

.custom-spotlight-v2 .custom-swiper-controls .custom-spotlight-v2-button-prev {
    left: 15px;

    &.custom-swiper-prev-5 {
        left: 25px;

        @media screen and (max-width: 599px) {
            left: 15px;
        }
    }
}

.custom-spotlight-v2 .custom-swiper-controls .custom-spotlight-v2-button-next {
    left: unset;
    right: 15px;

    &.custom-swiper-next-5 {
        right: 25px;

        @media screen and (max-width: 599px) {
            right: 15px;
        }
    }
}


.custom-spotlight-v2-list-area {
    position: relative;
    opacity: 0;
    transition: all .25s linear;
}

.custom-spotlight-v2-list-area.full-width {
    width: calc(100% + 64px);
    margin-left: -32px;

    @media screen and (max-width: 599px) {
        width: calc(100% + 40px);
        margin-left: -20px;
    }
}

.custom-spotlight-v2-list-area:has(.swiper-initialized) {
    opacity: 1;
}

.custom-spotlight-v2-list-area:after {
    content: close-quote;
    display: block;
    position: absolute;
    width: 100%;
    height: var(--bottom-bar-height);
    bottom: 0;
    left: 0;
    background-color: var(--bottom-bar-bg-color);
    z-index: 1;
}

.custom-spotlight-v2-list-area:before {
    content: close-quote;
    display: block;
    position: absolute;
    width: 100%;
    height: var(--bottom-bar-height);
    bottom: 0;
    left: 0;
    background-image: var(--bottom-bar-bg-image, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: 2;
}

.custom-spotlight-v2-list-area .swiper-slide-active .custom-spotlight-v2-item-image-wrap img {
    transform: scale(1);
}

.custom-spotlight-v2-list-area .swiper-slide-active .custom-spotlight-v2-item-image-wrap .activeClickedHack {
    display: block;
}

.custom-spotlight-v2-list-area .swiper-slide-active .custom-spotlight-v2-item__bottom {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

@media only screen and (min-width: 959px) {
    .custom-spotlight-v2-list-area .swiper-slide-active.view-all-slide .custom-spotlight-v2-item-image-wrap img {
        max-height: 100%;
    }
}

.custom-spotlight-v2-list-area .swiper-slide-active.view-all-slide .custom-spotlight-v2-item__hidden-left {
    opacity: 1;
    visibility: visible;
    height: calc(100% - var(--bottom-bar-height));
    transition: all 1s linear;
    padding-left: 10px;
    padding-right: 10px;
}

.custom-spotlight-v2-list-area .swiper-slide-active.view-all-slide .custom-spotlight-v2-item__hidden-left .custom-spotlight-v2-item-button:not(:has(a)) {
    display: none;
}

.custom-spotlight-v2-list-area .swiper-slide-active.view-all-slide .custom-spotlight-v2-item__hidden-left .custom-spotlight-v2-item-button a {
    color: var(--bottom-bar-text-color);
    background-color: var(--bottom-bar-bg-color);
    border-color: var(--bottom-bar-bg-color);
}

.custom-spotlight-v2-list-area .swiper-slide-active.view-all-slide .custom-spotlight-v2-item__hidden-left .custom-spotlight-v2-item-button a:hover {
    color: var(--bottom-bar-bg-color);
    background-color: var(--bottom-bar-text-color);
}

.custom-spotlight-v2-list-area .swiper-slide-active.view-all-slide .custom-spotlight-v2-item__hidden-right {
    opacity: 1;
    visibility: visible;
    height: calc(100% - var(--bottom-bar-height));
    transition: all 1s linear;
}

@media only screen and (max-width: 960px) {
    .custom-spotlight-v2-list-area .swiper-slide-active.view-all-slide .custom-spotlight-v2-item__hidden-right {
        height: 400px;
        background-color: #fff;
        top: 0;
        left: 0;
        opacity: 1;
        visibility: visible;
        transition: none;
        padding-top: 40px;
    }

    .custom-spotlight-v2-list-area .swiper-slide-active.view-all-slide .custom-spotlight-v2-item__hidden-right .custom-spotlight-v2-item-description {
        width: 100%;
        max-height: 500px;
        font-size: 15px;
    }
}

.custom-spotlight-v2-list-area .swiper-slide-active.view-all-slide .custom-spotlight-v2-item .closeExpanded {
    display: block;
    cursor: pointer;
}

@media only screen and (min-width: 959px) {
    .custom-spotlight-v2-list-area .swiper-slide-active.view-all-slide .custom-spotlight-v2-item__bottom {
        opacity: 0;
        visibility: hidden;
    }
}

.custom-spotlight-v2-list-area .custom-spotlight-v2-list:has(.view-all-slide) .swiper-slide.view-all-slide {
    z-index: 5;
}

.custom-spotlight-v2-list-area .custom-spotlight-v2-list:has(.view-all-slide) .swiper-slide:not(.view-all-slide) {
    position: relative;
    z-index: 1;
}

.custom-spotlight-v2-list-area .custom-spotlight-v2-list:has(.view-all-slide) .swiper-slide:not(.view-all-slide) .custom-spotlight-v2-item-image-wrap {
    opacity: 0;
    visibility: hidden;
    z-index: -1;
}

/* ============= CUSTOM SPOTLIGHT V2 END ============= */