* {
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
}
*:before,
*:after {
    box-sizing: border-box;
}
html {
    font-size: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
body.page-photo-gallery {
    margin: 0;
    padding: 0;
    background: #fff;
    color: #172A3F;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 1em;
    font-weight: 400;
    line-height: 1;
}

.um-photo-gallery {
    position: relative;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    /*max-width: 1900px;*/
    /*width: 100%;*/
}
.um-photo-gallery__main {
    display: flex;
    justify-content: flex-start;
    gap: 32px;
    width: 100%;
    flex: 1;
}
.um-photo-gallery__photo {

}
.um-photo-gallery__photo img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #E4E7EC;
}
.um-photo-gallery__info {
    position: relative;
    width: 370px;
    flex-shrink: 0;
}
.um-photo-gallery__description {
    position: sticky;
    top: 20px;
    z-index: 1;
    left: 0;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 400;
}
.um-photo-gallery__description h1 {
    font-weight: 400;
    line-height: 1.4;
    font-size: 24px;
    margin: 0 0 32px;
}
.um-photo-gallery__description p {
    margin: 16px 0;
}
.um-photo-gallery__description > *:first-child {
    margin-top: 0;
}
.um-photo-gallery__description > *:last-child {
    margin-bottom: 0;
}
.um-photo-gallery__next,
.um-photo-gallery__prev {
    display: flex;
    justify-content: center;
    align-items: center;
    /*width: 50px;*/
    /*height: 60px;*/
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 5px 10px;
    position: fixed;
    top: 45%;
    z-index: 10;
    outline: 0;
    /*background: transparent;*/
    color: #172A3F;
    opacity: .8;
    background-color: #F7F7F7;
}
.um-photo-gallery__next:hover,
.um-photo-gallery__prev:hover{
    opacity: 1;
}
.um-photo-gallery__next svg,
.um-photo-gallery__prev svg{
    display: block;
    width: 30px;
    height: auto;
    margin: 0;
    padding: 0;
}
.um-photo-gallery__next svg path,
.um-photo-gallery__prev svg path{
    fill: #172A3F;
}
.um-photo-gallery__next {
    right: 0;
}
.um-photo-gallery__prev {
    left: 0;
}
.um-photo-gallery__thumbs-wrap {
    padding-top: 20px;
}
.um-photo-gallery__thumbs {
    user-select: none;
    margin-top: auto;
    /*padding-top: 20px;*/
    padding: 20px;
    border-radius: 8px;
    background-color: #F7F7F7;
    display: flex;
    justify-content: flex-start;
    width: 100%;
    /*justify-content: center;*/
}
.um-photo-gallery__scroll {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 4px;
    padding-bottom: 4px;
    /*width: calc(100% - 350px);*/
}
.um-photo-gallery__scroll::-webkit-scrollbar{
    width: 4px !important;
    height: 4px !important;
    -webkit-appearance: none;
}
.um-photo-gallery__scroll::-webkit-scrollbar-track {
    border-radius: 5px;
    background: rgba(0,0,0,.1) !important;
}
.um-photo-gallery__scroll::-webkit-scrollbar-thumb {
    height: 4px;
    border: 2px solid transparent;
    border-radius: 10px;
    background: rgba(11,83,146,.9) !important;
}
.um-photo-gallery__scroll::-webkit-scrollbar-button {
    width: 0;
    height: 0;
    display: none;
}
.um-photo-gallery__scroll::-webkit-scrollbar-corner {
    background-color: transparent;
}
.um-photo-gallery__thumb {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    opacity: 1;
    overflow: hidden;
    border: 0;
    text-decoration: none;
    background-color: #fff;
    border-radius: 4px;
    padding: 5px;
    border: 1px solid #E4E7EC;
}
.um-photo-gallery__thumb.active:after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: #0B5392;
    pointer-events: none;
    border-radius: 4px;
    opacity: .32;
}
.um-photo-gallery__thumb:not(.active):hover:after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: #0B5392;
    pointer-events: none;
    border-radius: 4px;
    opacity: .1;
}
.um-photo-gallery__thumb img {
    pointer-events: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.good-main-share {
    display: flex;
    gap: 1px;
    width: 100%;
    margin-top: 32px;
}
.good-main-share__item {
    position: relative;
    flex: 1;
}
.good-main-share__button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    text-decoration: none;
    user-select: none;
    outline: 0;
    border: 0;
    color: #fff;
    background: #0B5392;
    font-size: 14px;
    line-height: 24px;
    padding: 6px 12px;
    border-radius: 0;
    width: 100%;
    cursor: pointer;
}
.good-main-share__button.is-wait {
    cursor: default;
    pointer-events: none;
    color: transparent;
}
.good-main-share__button.is-wait:after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    margin: auto;
    width: 80%;
    height: 80%;
    background: url("/templates/template35/img/wait.svg") center/contain no-repeat;
    content: "";
    animation: wait-rotate 1s linear infinite;
}
.good-main-share__item:first-child .good-main-share__button {
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
}
.good-main-share__item:last-child .good-main-share__button {
    border-top-right-radius: 18px;
    border-bottom-right-radius: 18px;
}
.good-main-share__button svg {
    width: 24px;
    height: 24px;
    display: block;
    flex-shrink: 0;
}
.good-main-share__button:hover {
    text-decoration: none;
    color: #fff;
    background: #094275;
}
.good-main-share__dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: -35px;
    right: -35px;
    z-index: 1;
    background: #fff;
    margin-top: 10px;
    border-radius: 12px;
    padding: 12px 0;
    box-shadow: 0 16px 48px rgba(23,42,63,.2);
}
.good-main-share__dropdown a,
.good-main-share__dropdown button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
    color: #172A3F;
    font-size: 14px;
    line-height: 18px;
    text-align: left;
    padding: 8px 12px;
    text-decoration: none;
    user-select: none;
    border: 0;
    outline: 0;
    background: transparent;
}
.good-main-share__dropdown a img,
.good-main-share__dropdown button img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}
.good-main-share__dropdown a:hover,
.good-main-share__dropdown button:hover{
    text-decoration: none;
    background: #ececf3;
}
.good-main-share__item.--open .good-main-share__dropdown {
    display: block;
}

.um-photo-gallery__scroll.is-scrolling > * {
    pointer-events: none;
}
.um-photo-gallery__close {
    position: absolute;
    top: 20px;
    right: 40px;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    background: #0B5392;
    outline: 0;
    border: 0;
    font-size: 14px;
    line-height: 24px;
    padding: 6px 12px;
    gap: 4px;
    border-radius: 18px;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
}
.um-photo-gallery__close svg {
    width: 24px;
    height: 24px;
}
@media (max-width: 1180px) {
    .um-photo-gallery__close {
        font-size: 0;
        gap: 0;
        right: 20px;
        padding: 6px;
        position: fixed;
        z-index: 10;
    }
}
@media (max-width: 1024px){
    .um-photo-gallery {
        height: auto;
    }
    .um-photo-gallery__main {
        flex-direction: column;
        gap: 16px;
    }
    .um-photo-gallery__info {
        width: 100%;
    }
    .um-photo-gallery__description h1 {
        font-size: 18px;
        margin: 0 0 16px;
    }
    .um-photo-gallery__description {
        font-size: 12px;
    }

    .good-main-share {
        margin-top: 16px;
    }
    .good-main-share__dropdown {
        bottom: 100%;
        top: auto;
        left: 0;
        right: 0;
        margin-top: 0;
        margin-bottom: 10px;
    }
}
@media (min-width: 601px) {
    .um-photo-gallery__thumbs-grid .um-photo-gallery__scroll {
        overflow: hidden;
        width: 100%;
        flex-wrap: wrap;
    }
}
@media (max-width: 600px) {
    .um-photo-gallery {
        padding-bottom: 0;
    }
    .good-main-share__button {
        gap: 4px;
    }
    .good-main-share__button svg {
        display: none;
    }
    .um-photo-gallery__thumbs-wrap {
        margin-left: -40px;
        margin-right: -40px;
    }
    .um-photo-gallery__thumbs {
        padding-left: 0;
        padding-right: 0;
    }
    .um-photo-gallery__thumb:first-child {
        margin-left: 40px;
    }
    .um-photo-gallery__thumb:last-child {
        margin-right: 40px;
    }
}

.hostcmsPanel,
.hostcmsInformationPanel,
.togglePanel.hostcmsPanel {
    display: none !important;
}
@keyframes wait-rotate {
    100% {
        transform: rotate(-360deg);
    }
}

.msgBox {
    position: fixed;
    display: flex;
    align-items: center;
    width: 300px;
    height: auto;
    background: #ecffe4;
    padding: 15px;
    color: #000;
    border-left: 2px solid #49da00;
    box-shadow: 5px 5px 10px rgba(0,0,0,.1);
    border-radius: 4px;
    user-select: none;
    opacity: 0;
    overflow: hidden;
    top: 20px;
    right: 20px;
    /*transform: translate3d(-50%, -50%, 0);*/
    z-index: 90;
}
.msgBox.is-show {
    animation: msgBox-animate 400ms cubic-bezier(0.39, 0.58, 0.57, 1);
    opacity: 1;
}
.msgBox.is-hide {
    pointer-events:none;
    animation: msgBox-animate-hide 200ms ease-in;
    opacity: 0;
}
.msgBox__icon {
    margin-right: 15px;
    display: block;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    box-sizing: border-box;
    color: #094275;
    fill: currentColor;
}
.msgBox__text {font-size:16px;line-height:1.4;font-weight:400;font-family:inherit;color:#000;}
.msgBox__close {
    position: absolute;
    top: 0;
    right: 0;
    width: 24px;
    height: 24px;
    outline: 0;
    cursor: pointer;
    border: 0;
    background: transparent;
    color: #000;
    padding: 0;
    box-sizing: border-box;
    opacity: .5;
}
@keyframes msgBox-animate {
    0% {
        transform: translateX(15px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}
@keyframes msgBox-animate-hide {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(15px);
        opacity: 0;
    }
}
@media (max-width:500px){
    .msgBox{
        width: 290px;
    }

}