@charset "utf-8";

/* photos CSS
---------------------------------- */
body #photos-list {
    opacity: 0;
    transition: opacity 0.25s ease;
}

body.is-ready #photos-list {
    opacity: 1;
    transition-delay: 0.25s;
}

#photos .pagettl {
    background-color: #3761b5;
    background-image: none;
}

#photos .pagettl::before {
    background: linear-gradient(
        180deg,
        rgb(247 247 247 / 0%) 0%,
        rgb(145 165 186 / 100%) 100%
    );
}

.wrap-photos {
    margin-left: 5%;
    margin-right: max(5%, 85px);
}

@media (max-width: 1024px) {
    .wrap-photos {
        margin-right: 5%;
    }
}

/* photo-list ------------------------ */
.photo-list {
    gap: 5vw;
}

.photo-list .sbox-photo {
    width: calc((100% - 10vw) / 3);
}

.photo-list .thumbnail {
    position: relative;
}

.photo-list .thumbnail::before {
    content: "";
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 5%);
    mix-blend-mode: multiply;
    position: absolute;
    z-index: 1;
}

.photo-list .thumbnail .i-plus {
    width: 40px;
    height: 40px;
    background-color: rgb(0 0 0 / 20%);
    position: absolute;
    right: 5px;
    bottom: 5px;
    z-index: 2;
}

.photo-list .thumbnail .i-plus::before,
.photo-list .thumbnail .i-plus::after {
    content: "";
    background-color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
}

.photo-list .thumbnail .i-plus::before {
    width: 20px;
    height: 2px;
}

.photo-list .thumbnail .i-plus::after {
    width: 2px;
    height: 20px;
}

@media (max-width: 1200px) {
    .photo-list .sbox-photo {
        width: calc((100% - 10vw) / 2);
    }
}

@media (max-width: 767px) {
    .photo-list .thumbnail .i-plus {
        width: 32px;
        height: 32px;
    }
}

/* hover */
.photo-list .sbox-photo img {
    transition: transform ease 0.25s;
}

.photo-list .col-img .of-wrap {
    overflow: hidden;
}

@media (min-width: 768px) {
    .photo-list .sbox-photo a:hover img {
        transform: scale(1.1);
    }
}

@media (min-width: 401px) and (max-width: 480px) {
    .photo-list .thumbnail {
        margin-bottom: 25px;
    }
}

@media (max-width: 400px) {
    .photo-list .sbox-photo {
        width: 100%;
    }
}

/* pager ------------------------ */
.sec-photos .pager {
    max-width: 1000px;
    margin: 0 auto;
}

.sec-photos .pager ul {
    justify-content: space-between;
    align-items: center;
}

.sec-photos .pager ul .nav-current {
    display: none;
}

.sec-photos .pager .list-wrap {
    height: auto;
}

.sec-photos .pager .pager-list {
    display: flex;
    column-gap: 5px;
    align-items: center;
}

.sec-photos .pager .pager-item {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    line-height: 40px;
    text-align: center;
    transition: background-color 0.25s ease;
}

.sec-photos .pager .pager-item.current {
    background-color: #eaedfd;
}

@media (min-width: 768px) {
    .sec-photos .pager .pager-item:not(.ellipses):hover {
        background-color: #eaedfd;
    }
}

@media (max-width: 767px) {
    .sec-photos .pager .pager-item.start,
    .sec-photos .pager .pager-item.ellipses,
    .sec-photos .pager .pager-item.end {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .sec-photos .pager > ul > li {
        width: auto;
    }
}

@media screen and (max-width: 400px) {
    .sec-photos .pager ul .nav-current {
        display: block;
    }

    .sec-photos .pager .list-wrap {
        display: none;
    }
}

/* fancybox ------------------------- */
body#photos.compensate-for-scrollbar {
    margin-right: 0 !important;
}

.fancybox-caption__body p {
    font-size: 1.2em;
    padding-bottom: 15px;
}

@media (max-width: 476px) {
    .fancybox-caption__body p {
        font-size: 1.2em;
        padding-bottom: 10px;
    }
}
