﻿.property-gallery-hero {
    width: 100%;
    padding: 17px 0px;
}

.gallery-tile {
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .gallery-tile::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.45), transparent);
    }

    .gallery-tile:hover {
        outline: 3px solid #ffb703;
        transform: scale(1.05);
        z-index: 1;
    }

.gallery-caption {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    border-radius: 20px;
    z-index: 3;
    pointer-events: none;
    white-space: nowrap;
}
.modal-caption {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 18px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    backdrop-filter: blur(3px);
    z-index: 5;
    pointer-events: none;
}

/* HEIGHT CONTROL (THIS IS THE KEY) */
.gallery-tile--wide {
    height: 440px;
}

.gallery-tile--wide-last {
    height: 400px;
}

.gallery-tile--small {
    height: 215px;
}

.gallery-tile--tall {
    height: 440px;
}
/* Mobile adjustments */
@media (max-width: 991px) {
    .gallery-tile--wide,
    .gallery-tile--tall {
        height: 300px;
    }

    .gallery-tile--small {
        height: 180px;
    }
}

/* MODAL RESET */
.gallery-modal .modal-content {
    background: #0c0f14;
    border-radius: 12px;
    overflow: hidden;
    height: 92vh;
    display: flex;
    flex-direction: column;
}

/* HEADER */
.gallery-modal .modal-header {
    padding: 12px 18px;
    background: linear-gradient(to bottom, rgba(0,0,0,.7), transparent);
}

.gallery-counter {
    color: #fff;
    font-size: 13px;
    opacity: .85;
}

/* BODY */
.gallery-modal .modal-body {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* IMAGE WRAPPER */
.gallery-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .gallery-image-wrapper img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        border-radius: 8px;
        box-shadow: 0 20px 60px rgba(0,0,0,.6);
        transition: opacity .25s ease, transform .25s ease;
    }

/* NAVIGATION BUTTONS */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 38px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    transition: all .25s ease;
    backdrop-filter: blur(6px);
}

    .gallery-nav:hover {
        background: rgba(255,255,255,.15);
    }

    .gallery-nav.prev {
        left: 20px;
    }

    .gallery-nav.next {
        right: 20px;
    }

/* MOBILE OPTIMIZATION */
@media (max-width: 768px) {
    .gallery-modal .modal-content {
        height: 100vh;
        border-radius: 0;
    }

    .gallery-nav {
        width: 42px;
        height: 42px;
        font-size: 28px;
    }
}

/* FEATURED VIDEO TILE */
.gallery-video-tile {
    width: 100%;
    height: 440px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

    .gallery-video-tile video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to top, rgba(0,0,0,.6), transparent);
}

.play-icon {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    font-size: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    /*transition: transform .25s ease, background .25s ease;
    background: rgba(0,0,0,.65);
    color: #fff;*/
    transform: scale(1.15);
    background: rgba(255,183,3,.9);
    color: #000;
}

