/* =========================================
   CTTC GALLERY
========================================= */

.cttc-gallery-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-title {
    max-width: 750px;
    margin: 0 auto 45px;
}

.section-title span {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #e09b28;
    margin-bottom: 8px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: #172b4d;
    margin-bottom: 15px;
}

.section-title p {
    color: #777;
    font-size: 16px;
    line-height: 1.7;
}


/* Gallery Card */

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
	margin-bottom:10px;
	padding:10px;
}

.gallery-card a {
    display: block;
    position: relative;
    overflow: hidden;
}

.gallery-card img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}


/* Hover */

.gallery-card:hover img {
    transform: scale(1.08);
}


/* Overlay */

.gallery-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    background: rgba(13, 38, 67, 0.78);

    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}


/* Zoom Icon */

.gallery-icon {
    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #fff;
    color: #d89b28;

    font-size: 23px;

    margin-bottom: 15px;

    transform: translateY(20px);
    transition: all 0.4s ease;
}

.gallery-card:hover .gallery-icon {
    transform: translateY(0);
}


.gallery-overlay h5 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;

    margin: 0 0 5px;

    transform: translateY(20px);
    transition: all 0.45s ease;
}

.gallery-overlay span {
    color: #eee;
    font-size: 13px;

    transform: translateY(20px);
    transition: all 0.5s ease;
}

.gallery-card:hover .gallery-overlay h5,
.gallery-card:hover .gallery-overlay span {
    transform: translateY(0);
}


/* =========================================
   CTTC LIGHTBOX
========================================= */

.cttc-lightbox {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    background: rgba(0, 0, 0, 0.95);

    z-index: 999999 !important;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;

    box-sizing: border-box;
}

.cttc-lightbox.active {
    display: flex !important;
}


/* =========================================
   IMAGE
========================================= */

.lightbox-content {
    position: relative;

    width: auto;
    max-width: 90vw;
    max-height: 90vh;

    text-align: center;

    z-index: 1000000;
}

.lightbox-content img {
    display: block;

    max-width: 90vw !important;
    max-height: 80vh !important;

    width: auto;
    height: auto;

    margin: auto;

    object-fit: contain;

    border-radius: 5px;

    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}


/* =========================================
   CAPTION
========================================= */

#lightboxCaption {
    margin-top: 15px;

    color: #ffffff !important;

    font-size: 16px;
    font-weight: 500;

    text-align: center;
}


/* =========================================
   ALL BUTTONS
========================================= */

.cttc-lightbox button {
    position: absolute;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    padding: 0 !important;
    margin: 0 !important;

    border: none !important;
    outline: none !important;

    background: rgba(255, 255, 255, 0.18) !important;

    color: #ffffff !important;

    cursor: pointer;

    font-family: Arial, sans-serif !important;

    line-height: 1 !important;

    z-index: 1000001 !important;

    transition: all 0.3s ease;
}


/* =========================================
   CLOSE BUTTON
========================================= */

.cttc-lightbox .lightbox-close {
    top: 25px !important;
    right: 30px !important;

    width: 50px !important;
    height: 50px !important;

    border-radius: 50% !important;

    font-size: 38px !important;

    font-weight: 300 !important;
}

.cttc-lightbox .lightbox-close:hover {
    background: #ffffff !important;
    color: #222222 !important;

    transform: rotate(90deg);
}


/* =========================================
   PREVIOUS BUTTON
========================================= */

.cttc-lightbox .lightbox-prev {
    top: 50% !important;
    left: 25px !important;

    width: 55px !important;
    height: 55px !important;

    border-radius: 50% !important;

    font-size: 32px !important;

    transform: translateY(-50%);
}

.cttc-lightbox .lightbox-prev:hover {
    background: #ffffff !important;
    color: #222222 !important;

    transform: translateY(-50%) scale(1.08);
}


/* =========================================
   NEXT BUTTON
========================================= */

.cttc-lightbox .lightbox-next {
    top: 50% !important;
    right: 25px !important;

    width: 55px !important;
    height: 55px !important;

    border-radius: 50% !important;

    font-size: 32px !important;

    transform: translateY(-50%);
}

.cttc-lightbox .lightbox-next:hover {
    background: #ffffff !important;
    color: #222222 !important;

    transform: translateY(-50%) scale(1.08);
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .cttc-lightbox {
        padding: 10px;
    }

    .lightbox-content {
        max-width: 88vw;
    }

    .lightbox-content img {
        max-width: 88vw !important;
        max-height: 75vh !important;
    }

    .cttc-lightbox .lightbox-close {
        top: 15px !important;
        right: 15px !important;

        width: 44px !important;
        height: 44px !important;

        font-size: 32px !important;
    }

    .cttc-lightbox .lightbox-prev {
        left: 10px !important;

        width: 45px !important;
        height: 45px !important;

        font-size: 27px !important;
    }

    .cttc-lightbox .lightbox-next {
        right: 10px !important;

        width: 45px !important;
        height: 45px !important;

        font-size: 27px !important;
    }

    #lightboxCaption {
        font-size: 14px;
    }
}