body {
    font-family: 'Lato', sans-serif !important;
    background-color: #B7EBF0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.gallery-container {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30vh;
}

.gallery-header {
    position: relative;
    width: 100%;
}

.gallery-header-mask {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(41.78% 88.82% at 48.95% 94.72%, #000 14.5%, rgba(0, 0, 0, 0.00) 100%);
}

.gallery-hero-image {
    background-image: url('/static/images/gallery/story-gallery-hero.jpg');
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 380px;
}

.gallery-title {
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: 45px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}

.gallery-title h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 56px;
    color: #fff;
    margin-bottom: 3px;
}

.gallery-title p {
    font-size: 34px;
    line-height: 34px;
    color: #fff;
    font-weight: 300;
    padding-bottom: 10px;
}

.gallery-search-container {
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 72px;
    border-radius: 36px;
    background: #FFFFFF;
    padding: 16px 30px;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
}

.trending-searches {
    width: 100%;
    position: absolute;
    bottom: -70px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.trending-searches span {
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
    color: #3588A3;
}

.trending-searches a {
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: #3588A3;
    text-decoration: none;
}

.trending-searches a:hover {
    opacity: 0.8;
}

.gallery-search-container input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    font-size: 24px;
    line-height: 36px;
    color: #242222;
}

.gallery-search-container input::placeholder {
    color: #8A8A8A;
    font-weight: 400;
    font-style: italic;
    font-size: 24px;
    line-height: 36px;
}

.gallery-search-button {
    padding: 0.75rem 1.5rem;
    position: absolute;
    font-size: 18px;
    line-height: 28px;
    font-weight: 500;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    border-radius: 36px;
}

.rtl .gallery-search-button {
    left: 12px;
    right: unset;
}

.gallery-search-button:active {
    position: absolute;
    top: 52%;
}

.gallery-topics-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 80px;
}

.gallery-topic {
    cursor: pointer;
    padding: 13px 30px;
    border-radius: 50px;
    background-color: #90D5DC;
    color: #363636;
    font-size: 16px;
    font-weight: 700;
    display: inline-block;
    white-space: nowrap;
    transition: background-color 0.3s ease-in-out;
}

.gallery-topic:hover {
    background-color: #70B8C2;
}


.gallery-stories-pagination {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 25px;
    height: 24px;
}

.gallery-stories-found-count {
    color: #1C5459;
}

.gallery-stories-found-count a, a.back-to-story-gallery{
    text-decoration: underline;
    color: #3588A3!important;
}

.gallery-stories-showing span {
    font-weight: 700;
}

.gallery-explainer {
    position: relative;
    margin-top: 50px;
    color: #FFF;
    background-color: #56B2C6;
    padding: 21px;
}

.gallery-explainer-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 28px;
}

.gallery-explainer-text {
    font-size: 16px;
    font-weight: 400;
    line-height: 21px;
}

.gallery-explainer-arrow {
    position: absolute;
    bottom: -15px;
    left: 100px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid #56B2C6;
}

.rtl .gallery-explainer-arrow {
    left: unset;
    right: 100px;
}

.gallery-stories-container {
    margin-top: 30px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.gallery-story {
    cursor: pointer;
    margin-top: 0px;
    margin-bottom: var(--bs-gutter-y);
}

.gallery-story-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    display: block;
    height: 355px;
}

.gallery-story-mask {
    position: absolute;
    z-index: 1;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%;
    background:  linear-gradient(0deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 72%);
}

.gallery-story-cover {
    height: 100%;
    overflow: hidden;
    border-radius: 15px;
}

.gallery-story-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.gallery-story-info {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    padding: 15px;
    z-index: 2;
}

.gallery-story-info h3{
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 6px;
}
.gallery-story-info span.separator{
    width:40px ;
    height: 1px;
    border-top: 1px solid #fff;
    display: block;
    margin-top: 13px;
}

.gallery-story-info .gallery-story-creator{
    font-size: 14px;
    color: #fff;
    margin: 0;
    line-height: 20px;
}

.gallery-story-info span.fib {
    background-size: cover;
    background-position: 50%;
    background-repeat: no-repeat;
    border-radius: 2px;
    width: 16px;
    height: 12px;
    margin-top: -1px;
    margin-left: 4px;
    margin-right: 4px;
    vertical-align: middle;
}

.bookmark-icon {
    width: 15px;
    height: 20px;
    background-image: url('/static/images/gallery/bookmark-icon.svg');
    background-size: cover;
    background-position: center;
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 8;
}

.rtl .bookmark-icon {
    right: unset;
    left: 15px;
}

.bookmark-icon:hover {
    cursor: pointer;
    transition: scale 0.3s ease-in-out;
}

.bookmark-icon:hover:not(.active) {
    scale: 1.1;
}

.bookmark-icon.active {
    background-image: url('/static/images/gallery/bookmark-icon-fill.svg');
}

.bookmark-icon:hover.active {
    transition: opacity 0.3s ease-in-out;
    opacity: 0.8;
}

.views-container {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 5px;
    position: absolute;
    bottom: 15px;
    left: 15px;
    z-index: 8;
}

.rtl .views-container {
    left: unset;
    right: 15px;
}

.views-container span{
    font-size: 16px;
    color: #fff;
    margin: 0;
}

.create-story-card {
    cursor: pointer;
}

.create-story-card .create-story-text {
    color: #4F8790;
    font-weight: 500;
    font-size: 20px;
}

.gallery-story-new {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    overflow: hidden;
    border-radius: 15px;
    background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='4' ry='4' stroke='%23333' stroke-width='1' stroke-dasharray='20%2c 20' stroke-dashoffset='20' stroke-linecap='round'/%3e%3c/svg%3e");
    background-color: #C6F8FC;
}

.gallery-story-new:hover {
    background-color: #A6DEE7;
}

.gallery-story-new img {
    object-fit: cover;
    object-position: center;
}

#signupModal .blue-link {
    color: #4B9FB1;
}

#signupModal .separator {
    width: 103px;
    border-top: 3px solid #354896;
}

/* Slow-motion Zoom Container */
.img-hover-zoom--slowmo .gallery-story-cover img {
    /* transform-origin: 50% 65%; */
    transition: transform 5s, filter 3s;
    /* filter: brightness(100%); */
}

/* The Transformation */
.img-hover-zoom--slowmo:hover .gallery-story-cover img {
    /* filter: brightness(120%); */
    transform: scale(1.2);
}

.outline-select {
    width: unset!important;
    /* border-radius: 4px; */
    color: #3E4F51 !important;
    font-size: 16px;
    line-height: 16px;
    background-color: #B7EBF0!important;
    --bs-btn-hover-bg: #B7EBF0;
    --bs-btn-padding-y: 12px;
    --bs-btn-padding-x: 10px;
    --bs-btn-active-border-color: #4FB1BB;
}

button.outline-select, button.outline-select:focus-visible, button.outline-select:focus {
    background-color: #B7EBF0;
    border-radius: 4px;
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 16px;
    color: #3E4F51;
    border: 1px solid #4FB1BB;
}

button.outline-select:hover {
    opacity: 0.8;
    color: #3E4F51 !important;
    border-color: #4FB1BB !important;
}

.outline-select .dropdown-toggle::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 10px;
    color: #3E4F51;
    background-image: url('/static/images/icons/arrow-down.svg');
    background-size: contain;
    background-position: top;
    background-repeat: no-repeat;
    margin-top: 6px;
    margin-left: .2em;
    margin-right: .2em;
    border: none;
}

.outline-select .dropdown-menu {
    padding: 0px;
    text-align: start;
}

.outline-select .filter-option {
    padding-left: 0px !important;
    padding-right: 0px !important;
}

.outline-select .dropdown-item {
    color: #3E4F51;
    background-color: #FAFAFA;
    padding: 8px 10px;
}

.outline-select .dropdown-item img {
    height: 12px;
}

.outline-select .dropdown-item.active{
    background-color: #E2E8E9;
    color: #3E4F51;
}

@keyframes placeholder-fade-in-out{
    0%{
        opacity: 0.5;
    }
    25%{
        opacity: 0.75;
    }
    50%{
        opacity: 1;
    }
    75%{
        opacity: 0.75;
    }
    100%{
        opacity: 0.5;
    }
}

@keyframes sparkle-animation {
    0% {
        scale: 1;
        opacity: 1;
    }
    50% {
        scale: 0.75;
        opacity: 0.9;
    }
    75% {
        scale: 1;
        opacity: 1;
    }
    100% {
        scale: 1;
        opacity: 1;
    }
}

@keyframes rotate-animation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.back-to-top-button {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: fixed;
    bottom: 3vh;
    right: calc((100vw - 1146px) / 2);
    z-index: 1000;
}

.back-to-top-button:hover {
    opacity: 0.8;
}

.back-to-top-button img {
    width: 50px;
    height: 50px;
}

.story-gallery-placeholder {
    background: #C4F6FB;
    background-size: 800px 355px;
    position: relative;
}

.story-gallery-placeholder .stripe {
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    animation-name: placeholder-fade-in-out;
    animation-timing-function: linear;
    position: absolute;
    z-index: 1;
    background: #ABE9EF;
    height: 15px;
    left: 20px;
}

.story-gallery-placeholder .stripe.stripe1 {
    width: 136px;
    bottom: 127px;
}

.story-gallery-placeholder .stripe.stripe2 {
    width: 176px;
    bottom: 107px;
}

.story-gallery-placeholder .stripe.stripe3 {
    width: 116px;
    bottom: 87px;
}

.story-gallery-placeholder .stripe.stripe4 {
    width: 76px;
    bottom: 27px;
}

.gallery-story-strip {
    position: relative;
    margin-bottom: var(--bs-gutter-y);
    margin-top: 0px;
    padding-right: calc(var(--bs-gutter-x)* .5);
    padding-left: calc(var(--bs-gutter-x)* .5);
    height: 89px;
    border-radius: 10px;
    background-color: #3D407B;
    cursor: pointer;
}

.gallery-story-strip-text {
    font-size: 26px;
    line-height: 26px;
    font-weight: 700;
    color: #fff;
    margin-left: 105px;
}

.rtl .gallery-story-strip-text {
    margin-left: unset;
    margin-right: 105px;
}

.red-button {
    text-align: center;
}

.gallery-story-strip-obj {
    position: absolute;
    background-size: cover;
    background-position: center;
}

.gallery-story-strip-obj-1 {
    top: -10px;
    left: 95%;
    width: 29px;
    height: 30px;
    background-image: url('/static/images/gallery/rhombus.svg');
    animation: sparkle-animation 3s infinite;
}

.rtl .gallery-story-strip-obj-1 {
    right: 95%;
    left: unset;
}

.gallery-story-strip-obj-2 {
    bottom: -25px;
    left: 90%;
    width: 40px;
    height: 38px;
    background-image: url('/static/images/gallery/star.svg');
    animation: rotate-animation 12s infinite;
}

.rtl .gallery-story-strip-obj-2 {
    right: 90%;
    left: unset;
}

.gallery-story-strip-obj-3 {
    bottom: -18px;
    left: 34%;
    width: 40px;
    height: 38px;
    background-image: url('/static/images/gallery/star.svg');
    animation: rotate-animation 11s infinite;
}

.rtl .gallery-story-strip-obj-3 {
    right: 34%;
    left: unset;
}

.gallery-story-strip-obj-4 {
    bottom: 50%;
    left: 76%;
    width: 23px;
    height: 23px;
    background-image: url('/static/images/gallery/star.svg');
    animation: rotate-animation 20s infinite;
}

.rtl .gallery-story-strip-obj-4 {
    right: 76%;
    left: unset;
}

.gallery-story-strip-obj-5 {
    top: -8px;
    left: 68%;
    width: 40px;
    height: 38px;
    background-image: url('/static/images/gallery/star.svg');
    animation: rotate-animation 15s infinite;
}

.rtl .gallery-story-strip-obj-5 {
    right: 68%;
    left: unset;
}

.gallery-story-strip-obj-crown {
    top: -30px;
    left: 10px;
    width: 116px;
    height: 99px;
    background-image: url('/static/images/gallery/crown.svg');
}

.rtl .gallery-story-strip-obj-crown {
    right: 10px;
    left: unset;
}

.gallery-story-strip-obj-moon {
    bottom: -30px;
    left: 70%;
    width: 56px;
    height: 65px;
    background-image: url('/static/images/gallery/moon.svg');
}

.rtl .gallery-story-strip-obj-moon {
    right: 70%;
    left: unset;
}

.gallery-story-strip-obj-balls-1 {
    bottom: -23px;
    left: 58%;
    width: 56px;
    height: 48px;
    transform: rotate(59deg);
    background-image: url('/static/images/gallery/balls.svg');
}

.rtl .gallery-story-strip-obj-balls-1 {
    right: 58%;
    left: unset;
}

.gallery-story-strip-obj-balls-2 {
    top: -14px;
    left: 41%;
    width: 56px;
    height: 48px;
    transform: rotate(-112deg);
    background-image: url('/static/images/gallery/balls.svg');
}

.rtl .gallery-story-strip-obj-balls-2 {
    right: 41%;
    left: unset;
}

.gallery-story-strip-obj-balls-3 {
    bottom: -15px;
    left: 0;
    width: 56px;
    height: 48px;
    background-image: url('/static/images/gallery/balls.svg');
}

.rtl .gallery-story-strip-obj-balls-3 {
    right: 0;
    left: unset;
}

.gallery-story-strip-obj-heart {
    top: -12px;
    left: 29%;
    width: 40px;
    height: 38px;
    background-image: url('/static/images/gallery/heart.svg');
    animation: sparkle-animation 10s infinite;
}

.rtl .gallery-story-strip-obj-heart {
    right: 29%;
    left: unset;
}

.gallery-story-strip-obj-diamond {
    bottom: -20px;
    left: 105px;
    width: 46px;
    height: 41px;
    background-image: url('/static/images/gallery/diamond.svg');
}

.rtl .gallery-story-strip-obj-diamond {
    right: 105px;
    left: unset;
}

.gallery-stories-empty-state-title {
    font-size: 22px;
    line-height: 28px;
    color: #000;
    font-weight: 700;
}

.gallery-stories-empty-state-text {
    font-size: 20px;
    line-height: 24px;
    color: #000;
}

.gallery-stories-empty-state {
    margin-top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
}

.gallery-story-staff-pick {
    position: absolute;
    top: 10px;
    right: 8px;
    display: flex;
    align-items: center;
    gap: 0.255rem;
    font-size: 14px;
    line-height: 16px;
    color: #3E4F51;
    font-weight: 700;
    background-color: #F6FDFF;
    border-radius: 4px;
    padding: 8px 7px;
}

.gallery-stories-empty-state.empty-search-results img {
    width: 350px;
    height: 314px;
}

.gallery-stories-empty-state.empty-favorites img, .gallery-stories-empty-state.empty-my-stories img {
    max-width: 830px;
    width: 100%;
    height: unset;
}

.gallery-stories-empty-state-button {
    width: unset;
    max-width: 240px;
}

@media (max-width: 1200px) {
    .back-to-top-button {
        bottom: 20px;
        right: 20px;
    }
}


@media (max-width: 992px) {

    .gallery-story-strip-text {
        font-size: 22px;
        line-height: 22px;
    }

    .gallery-story-strip-obj-4 {
        display: none;
    }
}

@media (max-width: 767px) {

    .trending-searches {
        bottom: -55px;
    }

    .gallery-explainer-arrow {
        left: 40px;
    }

    .gallery-stories-container {
        margin-top: 20px;
    }

    .gallery-header-mask {
        height: 75%;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, #000 100%);
    }

    .gallery-title {
        bottom: 23px;
    }

    .gallery-title h1 {
        font-size: 28px;
        font-weight: 700;
        line-height: 32px;
    }

    .gallery-title p {
        font-size: 16px;
        line-height: 18px;
    }

    .gallery-search-container {
        width: 92vw;
        height: 54px;
        bottom: -27px;
    }

    .gallery-search-button {
        right: 6px;
        padding: 9px 10px;
    }

    .rtl .gallery-search-button {
        left: 6px;
        right: unset;
    }

    .gallery-search-button span {
        display: none;
    }

    .gallery-search-container input {
        font-size: 18px;
        line-height: 24px;
    }

    .gallery-search-container input::placeholder {
        font-size: 18px;
        line-height: 24px;
    }

    .gallery-hero-image {
        height: 200px;
    }

    .gallery-story-strip {
        height: 169px;
    }

    .gallery-story-strip-text {
        font-size: 19px;
        line-height: 24px;
        margin-left: 45px;
        margin-right: 45px;
        text-align: center;
    }

    .rtl .gallery-story-strip-text {
        margin-left: 45px;
        margin-right: 45px;
    }

    .gallery-story-strip-obj-crown {
        top: -13px;
        left: 0px;
        width: 60px;
        height: 51px;
        transform: rotate(-32deg);
    }

    .rtl .gallery-story-strip-obj-crown {
        right: 0px;
        left: unset;
    }

    .gallery-story-strip-obj-heart {
        top: 27%;
        left: 3%;
        width: 32px;
        height: 31px;
    }

    .rtl .gallery-story-strip-obj-heart {
        right: 3%;
        left: unset;
    }

    .gallery-story-strip-obj-balls-1, .gallery-story-strip-obj-1, .gallery-story-strip-obj-2 {
        display: none;
    }

    .gallery-story-strip-obj-5 {
        left: 74%;
    }

    .rtl .gallery-story-strip-obj-5 {
        right: 74%;
        left: unset;
    }

    .gallery-story-strip-obj-balls-2 {
        top: -17px;
        left: 41%;
        width: 56px;
        height: 48px;
        transform: rotate(50deg);
    }

    .rtl .gallery-story-strip-obj-balls-2 {
        right: 41%;
        left: unset;
    }

    .gallery-story-strip-obj-3 {
        width: 30px;
        height: 28px;
        bottom: -15px;
    }

    .rtl .gallery-story-strip-obj-3 {
        right: 0;
        left: unset;
    }

    .gallery-story-strip-obj-diamond {
        bottom: -15px;
        left: 80%;
        width: 46px;
        height: 41px;
    }

    .rtl .gallery-story-strip-obj-diamond {
        right: 80%;
        left: unset;
    }

    .gallery-story-strip-obj-moon {
        left: 85%;
        top: 38%;
        width: 45px;
        height: 54px;
    }

    .rtl .gallery-story-strip-obj-moon {
        right: 85%;
        left: unset;
    }

    .gallery-stories-empty-state {
        margin-top: 70px;
    }

    .gallery-stories-empty-state-button {
        width: 100%;
        max-width: 400px;
    }

    .gallery-stories-empty-state.empty-search-results img {
        width: 278px;
        height: 250px;
    }

    .gallery-stories-empty-state.empty-favorites img, .gallery-stories-empty-state.empty-my-stories img {
        max-width: 380px;
    }
}

@media (max-width: 380px) {

    .gallery-stories-pagination {
        font-size: 14px;
        line-height: 16px;
    }


    .gallery-title h1 {
        font-size: 24px;
        font-weight: 700;
        line-height: 28px;
    }

    .gallery-title p {
        font-size: 15px;
        line-height: 16px;
    }

    .gallery-story-wrapper {
        height: 320px;
    }

    .gallery-story-strip-text {
        font-size: 19px;
        line-height: 24px;
        margin-left: 35px;
        margin-right: 35px;
    }

    .gallery-stories-empty-state.empty-favorites img, .gallery-stories-empty-state.empty-my-stories img {
        max-width: 300px;
    }

}