/**
 * Tour Gallery Image Lightbox Styles
 * Adds hover effects and eye icon overlay on tour package images
 */

/* Image Container */
.activities-items .activities-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.activities-items .activities-image a {
    display: block;
    position: relative;
    overflow: hidden;
    max-height: 244px;
}

.activities-items .activities-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
    display: block;
}

/* Hover Effect - Zoom Image */
.activities-items .activities-image a:hover img {
    transform: scale(1.1);
}

/* Image Overlay */
.activities-items .activities-image .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(28, 168, 203, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1;
}

.activities-items .activities-image a:hover .image-overlay {
    opacity: 1;
}

/* Eye Icon */
.activities-items .activities-image .image-overlay i {
    font-size: 50px;
    color: white;
    transform: scale(0.5);
    transition: transform 0.4s ease;
}

.activities-items .activities-image a:hover .image-overlay i {
    transform: scale(1);
}

/* Make cursor pointer on hover */
.tour-gallery-item {
    cursor: pointer;
}

/* Magnific Popup Custom Styling */
.mfp-fade.mfp-bg {
    opacity: 0;
    transition: all 0.3s ease-out;
}

.mfp-fade.mfp-bg.mfp-ready {
    opacity: 0.95;
    background: #0a2a35;
}

.mfp-fade.mfp-bg.mfp-removing {
    opacity: 0;
}

.mfp-fade.mfp-wrap .mfp-content {
    opacity: 0;
    transition: all 0.3s ease-out;
}

.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
    opacity: 1;
}

.mfp-fade.mfp-wrap.mfp-removing .mfp-content {
    opacity: 0;
}

/* Counter Styling */
.mfp-counter {
    color: white;
    font-size: 16px;
    font-weight: 600;
    background: rgba(28, 168, 203, 0.9);
    padding: 8px 20px;
    border-radius: 25px;
    margin-top: 10px;
}

/* Image Title */
.mfp-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    padding: 15px 0;
    background: rgba(0, 0, 0, 0.5);
}

/* Navigation Arrows */
.mfp-arrow {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.mfp-arrow:hover {
    opacity: 1;
}

.mfp-arrow-left:before {
    border-right-color: #1CA8CB;
}

.mfp-arrow-right:before {
    border-left-color: #1CA8CB;
}

/* Close Button */
.mfp-close {
    opacity: 0.8;
    transition: all 0.3s ease;
}

.mfp-close:hover {
    opacity: 1;
    color: #FFA31A;
}

/* Zoom Animation */
.mfp-zoom-in .mfp-figure {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s ease-in-out;
}

.mfp-zoom-in.mfp-ready .mfp-figure {
    opacity: 1;
    transform: scale(1);
}

.mfp-zoom-in.mfp-removing .mfp-figure {
    opacity: 0;
    transform: scale(0.95);
}

/* Responsive Design */
@media (max-width: 768px) {
    .activities-items .activities-image .image-overlay i {
        font-size: 40px;
    }

    .mfp-counter {
        font-size: 14px;
        padding: 6px 15px;
    }

    .mfp-title {
        font-size: 16px;
        padding: 12px 0;
    }
}

@media (max-width: 480px) {
    .activities-items .activities-image .image-overlay i {
        font-size: 35px;
    }
}
