@charset "UTF-8";

.top-big-gallery {
    margin-top: calc(16px - var(--content-top-padding));
    margin-bottom: var(--gap-blocks);
    position: relative;
    background-color: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--grey-light1);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.1875;
    letter-spacing: normal;
}

.top-big-gallery:after {
    content: '';
    display: block;
    clear: both;
}

.top-big-gallery .photo {
    position: relative;
    aspect-ratio: 358/268;
    overflow: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
    width: 100%;
    margin-bottom: 128px;
    z-index: 3;
    max-height: 50vh;
}

@media only screen and (min-width: 1200px) {
    .top-big-gallery .photo {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        aspect-ratio: unset;
        max-height: none;
        margin: 0;
        width: calc((100% - var(--gap-inner)*2)*0.666 + var(--gap-inner));
        border-top-right-radius: 0;
        border-bottom-left-radius: var(--radius);
    }
}

.top-big-gallery .photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.top-big-gallery .photo .swiper-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

.top-big-gallery .photo .swiper-slide {
    position: relative;
    height: auto !important;
}

.top-big-gallery .arrows {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 358/268;
    max-height: 50vh;
    /* Must outrank .top-big-gallery .photo's z-index:3. For "gallery_multiple" this
       doesn't matter in practice (.photo sits inside the main swiper, which has its
       own lower stacking context from Swiper's base z-index:1), but "gallery_single"
       puts the "photo" class directly on the swiper root, so its z-index:3 competes
       with .arrows directly at this level and was hiding the arrows behind it. */
    z-index: 5;
    pointer-events: none;
}

.top-big-gallery .arrows>* {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: var(--shadow-small);
    background-color: var(--white);
    pointer-events: auto;
    z-index: 5;
}

.top-big-gallery .slider-arrow-prev {
    left: 0;
}

.top-big-gallery .slider-arrow-next {
    right: 0;
    left: auto;
}

@media only screen and (min-width: 1200px) {
    .top-big-gallery .arrows {
        position: static;
        display: block;
        aspect-ratio: unset;
        max-height: none;
    }

    /* On desktop .photo only occupies the left 66.6% column (.text takes the rest),
       so the right arrow needs to sit at the edge of that column, not the full
       .top-big-gallery width - the mobile "right: 0" above would put it too far right. */
    .top-big-gallery .slider-arrow-next {
        left: calc((100% - var(--gap-inner)*2)*0.666 + var(--gap-inner) - 40px);
        right: auto;
    }
}

.top-big-gallery .text {
    padding: 16px 16px 24px 16px;
}

@media only screen and (min-width: 1200px) {
    .top-big-gallery .text {
        float: right;
        width: calc((100% - var(--gap-inner)*2)/3);
        padding: 32px 40px 132px 20px;
        min-height: 600px;
    }
}

.top-big-gallery .thumbs {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    pointer-events: none;
}

.top-big-gallery .thumbs:before {
    content: '';
    display: block;
    width: 100%;
    aspect-ratio: 358/268;
    margin-bottom: 72px;
    max-height: 50vh;
}

.top-big-gallery .thumbs .swiper {
    padding: 0 9px !important;
    pointer-events: auto;
}

.top-big-gallery .thumbs .swiper-slide {
    padding: 0 7px;
    width: 25%;
    max-width: 126px;
}

.top-big-gallery .thumbs img {
    display: block;
    width: 100%;
    height: 56px;
    border-radius: var(--radius-small);
    object-fit: cover;
    object-position: center;
    cursor: pointer;
}

@media only screen and (min-width: 1200px) {

    .top-big-gallery .thumbs {
        left: calc((100% - var(--gap-inner)*2)*0.666 + var(--gap-inner));
        top: auto;
        bottom: 32px;
    }

    .top-big-gallery .thumbs:before {
        display: none;
    }

    .top-big-gallery .thumbs .swiper {
        padding-left: calc(var(--gap-inner) + 12px) !important;
        padding-right: 20px !important;
    }

    .top-big-gallery .thumbs .swiper-slide {
        padding: 0 8px;
        max-width: none;
    }

    .top-big-gallery .thumbs img {

        height: 68px;
    }
}

/* Shared "photo has a description" badge/tooltip, reused by any gallery-style
   block (top-big-gallery, photo-gallery) via public/multisite/eparchi/js/top-big-gallery.js. */
.photo-description-badge {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 4;
    visibility: hidden;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.4);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 300;
    font-style: normal;
    font-family: Georgia, 'Times New Roman', serif;
    cursor: pointer;
    outline: none;
    transition: background-color 0.2s ease;
}

.photo-description-badge:hover,
.photo-description-badge:focus {
    background-color: rgba(0, 0, 0, 0.6);
}

.photo-description-tooltip {
    display: none;
    position: absolute;
    top: 33px;
    left: 0;
    width: max-content;
    max-width: 260px;
    padding: 12px 16px;
    border-radius: var(--radius-small);
    background-color: rgba(0, 0, 0, 0.75);
    color: var(--white);
    font-size: 14px;
    line-height: 1.3;
    font-weight: 300;
    text-align: left;
    z-index: 5;
}

.photo-description-badge:hover .photo-description-tooltip,
.photo-description-badge:focus .photo-description-tooltip {
    display: block;
}

/* Fix jump to scrollY=0 when GLightbox opens on a mobile device */
html:has(body.glightbox-open.glightbox-mobile),
body.glightbox-open.glightbox-mobile {
    overflow: visible !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

html:has(body.glightbox-open.glightbox-mobile)::-webkit-scrollbar,
body.glightbox-open.glightbox-mobile::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

@media only screen and (max-width: 699.98px) {
    html.glightbox-open,
    body.glightbox-open {
        overflow: visible !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    html.glightbox-open::-webkit-scrollbar,
    body.glightbox-open::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
}

/* GLightbox's own description panel fades from transparent to dark (top to bottom),
   so an untruncated (no "moreText" link) long description starts on a near-transparent
   background and becomes unreadable over bright photos. Force a solid dark backing
   and pure white text so contrast holds regardless of text length. */
.gslide-description {
    background: rgba(0, 0, 0, 0.8) !important;
}

.gslide-desc {
    color: #fff !important;
}

.gslide-desc .desc-more,
.gslide-desc .desc-less {
    color: #fff !important;
    opacity: 0.8 !important;
}

.top-big-gallery .date {
    margin-bottom: 16px;
}

.top-big-gallery-title {
    font-weight: bold;
    font-size: 20px;
    line-height: 1.2;
    margin: 0 0 16px 0;
}

@media only screen and (min-width: 940px) {
    .top-big-gallery-title {
        font-size: 24px;
    }
}

.top-big-gallery-title a {
    text-decoration: none;
    color: inherit;
    border: 0;
    transition: color 0.4s ease;
}

@media (pointer:fine) {
    .top-big-gallery-title a:hover {
        color: var(--color3);
    }
}

.top-big-gallery p {
    margin: 16px 0 0 0;
}

.top-big-gallery .mini-btn {
    margin-top: 16px;
}
