﻿/* ==============================
   GALLERY
   ============================== */

.gallery-section {
    background: #f8f9fa;
    margin-top: -104px;
}

.gallery-title {
    font-size: 32px;
    font-weight: 700;
}

/* Same width and height for every image */
.gallery-item {
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 10px;
    background: #eee;
    cursor: pointer;
}

    /* Automatically resize/crop large or small images */
    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
        transition: transform 0.4s ease;
    }

    /* Hover effect */
    .gallery-item:hover img {
        transform: scale(1.08);
    }

/* Mobile */
@media (max-width: 576px) {

    .gallery-item {
        height: 180px;
    }

    .gallery-title {
        font-size: 26px;
    }
}

/* Tablet */
@media (min-width: 577px) and (max-width: 991px) {

    .gallery-item {
        height: 210px;
    }
}

/* =========================================
   PILGRIM AUTO SCROLL GALLERY
   ========================================= */

.pilgrim-gallery {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 25px 0 55px;
    background: #ffffff;
}

/* Viewport */
.gallery-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* Moving Track */
.gallery-track {
    display: flex;
    width: max-content;
    gap: 24px;
    will-change: transform;
    padding-left: 8px;
}

/* Individual Item */
.gallery-item {
    flex: 0 0 auto;
    width: 275px;
}

/* Main Card */
.gallery-card {
    width: 100%;
    height: 235px;
    position: relative;
    overflow: hidden;
    border-radius: 13px;
    background: #ddd;
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.16);
    cursor: pointer;
}

    /* Image */
    .gallery-card img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        transition: transform 0.5s ease, filter 0.5s ease;
    }

/* Bottom Gradient */
.gallery-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 42%;
    background: linear-gradient( to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.25), transparent );
    pointer-events: none;
}

/* Title */
.gallery-title {
    position: absolute;
    left: 16px;
    bottom: 13px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    z-index: 2;
}

/* Hover */
.gallery-card:hover img {
    transform: scale(1.06);
    filter: brightness(1.05);
}


/* =========================================
   REFLECTION
   ========================================= */

.gallery-card::after {
    content: "";
    position: absolute;
    left: 0;
    top: calc(100% + 7px);
    width: 100%;
    height: 100%;
    background-image: inherit;
    opacity: 0.15;
    transform: scaleY(-1);
    pointer-events: none;
}


/* =========================================
   FADE EDGES
   ========================================= */

.gallery-viewport::before,
.gallery-viewport::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 45px;
    z-index: 5;
    pointer-events: none;
}

.gallery-viewport::before {
    left: 0;
    background: linear-gradient( to right, #ffffff, rgba(255, 255, 255, 0) );
}

.gallery-viewport::after {
    right: 0;
    background: linear-gradient( to left, #ffffff, rgba(255, 255, 255, 0) );
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 992px) {

    .gallery-track {
        gap: 18px;
    }

    .gallery-item {
        width: 240px;
    }

    .gallery-card {
        height: 210px;
    }

    .gallery-title {
        font-size: 13px;
        left: 13px;
        bottom: 12px;
    }
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 768px) {

    .pilgrim-gallery {
        padding: 15px 0 45px;
    }

    .gallery-track {
        gap: 14px;
        padding-left: 8px;
    }

    .gallery-item {
        width: 210px;
    }

    .gallery-card {
        height: 180px;
        border-radius: 11px;
    }

    .gallery-title {
        font-size: 12px;
        left: 12px;
        bottom: 10px;
    }

    .gallery-viewport::before,
    .gallery-viewport::after {
        width: 20px;
    }
}


/* =========================================
   SMALL MOBILE
   ========================================= */

@media (max-width: 480px) {

    .gallery-track {
        gap: 12px;
    }

    .gallery-item {
        width: 185px;
    }

    .gallery-card {
        height: 155px;
        border-radius: 10px;
    }

    .gallery-title {
        font-size: 11px;
        left: 10px;
        bottom: 9px;
    }

    .gallery-overlay {
        height: 45%;
    }
}


/* =========================================
   VERY SMALL DEVICES
   ========================================= */

@media (max-width: 360px) {

    .gallery-item {
        width: 165px;
    }

    .gallery-card {
        height: 140px;
    }
}


/* =========================================
   ACCESSIBILITY
   ========================================= */

@media (prefers-reduced-motion: reduce) {

    .gallery-track {
        transform: none !important;
    }

    .gallery-card img {
        transition: none;
    }
}

/* ==========================================
   VIDEO GALLERY
   ========================================== */

.video-gallery-section {
    width: 100%;
    background: #ffffff;
}


/* ==========================================
   VIDEO SECTION
   ========================================== */

.video-section {
    width: 100%;
    padding: 90px 0;
}

.video-section-one {
    background: #ffffff;
}

.video-section-two {
    background: #f7f5ef;
}


/* ==========================================
   CONTAINER
   ========================================== */

.video-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}


/* ==========================================
   CONTENT LAYOUT
   ========================================== */

.video-content {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    align-items: center;
    gap: 60px;
}

    .video-content.reverse {
        grid-template-columns: 1.25fr 0.75fr;
    }

        .video-content.reverse .video-text {
            order: 2;
        }

        .video-content.reverse .video-wrapper {
            order: 1;
        }


/* ==========================================
   TEXT
   ========================================== */

.video-text {
    padding: 10px;
}

.video-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: #b18b38;
}

.video-text h2 {
    margin: 0 0 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 42px;
    line-height: 1.15;
    font-weight: 600;
    color: #17433b;
}

.video-text p {
    max-width: 430px;
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    color: #666666;
}


/* ==========================================
   VIDEO WRAPPER
   ========================================== */

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 18px;
    background: #111111;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.14);
}


/* ==========================================
   VIDEO
   ========================================== */

.gallery-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #111111;
}


/* ==========================================
   PLAY OVERLAY
   ========================================== */

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: opacity 0.3s ease;
}


/* ==========================================
   PLAY BUTTON
   ========================================== */

.custom-play-btn {
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: rgba(23, 67, 59, 0.92);
    color: #ffffff;
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

    .custom-play-btn i {
        font-size: 34px;
        margin-left: 4px;
    }

    .custom-play-btn:hover {
        transform: scale(1.08);
        background: #caa34e;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    }


/* ==========================================
   HIDE PLAY BUTTON WHILE PLAYING
   ========================================== */

.video-wrapper.is-playing .video-overlay {
    opacity: 0;
    pointer-events: none;
}


/* ==========================================
   VIDEO HOVER
   ========================================== */

.video-wrapper:hover {
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.18);
}


/* ==========================================
   TABLET
   ========================================== */

@media (max-width: 992px) {

    .video-section {
        padding: 70px 0;
    }

    .video-content,
    .video-content.reverse {
        grid-template-columns: 1fr;
        gap: 35px;
    }

        .video-content.reverse .video-text,
        .video-content.reverse .video-wrapper {
            order: initial;
        }

    .video-text {
        text-align: center;
    }

        .video-text p {
            margin-left: auto;
            margin-right: auto;
        }

        .video-text h2 {
            font-size: 36px;
        }
}


/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 767px) {

    .video-section {
        padding: 55px 0;
    }

        .video-section .container {
            padding-left: 15px;
            padding-right: 15px;
        }

    .video-content,
    .video-content.reverse {
        gap: 25px;
    }

    .video-text {
        padding: 0;
    }

    .video-eyebrow {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .video-text h2 {
        font-size: 30px;
        margin-bottom: 14px;
    }

    .video-text p {
        font-size: 14px;
        line-height: 1.7;
    }

    .video-wrapper {
        border-radius: 14px;
        aspect-ratio: 16 / 10;
    }

    .custom-play-btn {
        width: 62px;
        height: 62px;
    }

        .custom-play-btn i {
            font-size: 28px;
        }
}


/* ==========================================
   SMALL MOBILE
   ========================================== */

@media (max-width: 480px) {

    .video-section {
        padding: 45px 0;
    }

    .video-text h2 {
        font-size: 27px;
    }

    .video-wrapper {
        border-radius: 12px;
    }

    .custom-play-btn {
        width: 56px;
        height: 56px;
    }

        .custom-play-btn i {
            font-size: 25px;
        }
}