/* =========================================================
   FULLSCREEN GALERIE FOTOGRAFIÍ

   Sdílený modal s carouselem – detail nemovitosti a články.
   Ovládání je v js/gallery-modal.js.
========================================================= */

.property-gallery-modal {
    --bs-modal-bg: #080d13;
}

.property-gallery-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #080d13;
    color: #fff;
}

.property-gallery-modal-header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 74px;
    padding: 13px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(8, 13, 19, 0.96);
}

.property-gallery-modal-header > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.property-gallery-modal-header strong {
    max-width: 70vw;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.property-gallery-modal-header span {
    color: rgba(255, 255, 255, 0.52);
    font-size: 11.5px;
}

.property-gallery-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 43px;
    height: 43px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-size: 19px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.property-gallery-close:hover {
    background: rgba(255, 255, 255, 0.14);
}

.property-gallery-modal .modal-body {
    display: flex;
    align-items: center;
    padding: 0;
}

.property-gallery-modal .carousel {
    width: 100%;
}

.property-gallery-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100vh - 74px);
    margin: 0;
    padding: 24px 90px;
}

.property-gallery-slide img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.property-gallery-caption {
    position: absolute;
    left: 50%;
    bottom: 21px;
    max-width: min(620px, 80vw);
    padding: 9px 14px;
    border-radius: var(--radius-pill);
    background: rgba(7, 13, 20, 0.74);
    color: rgba(255, 255, 255, 0.86);
    font-size: 12.5px;
    line-height: 1.45;
    text-align: center;
    transform: translateX(-50%);
    backdrop-filter: blur(8px);
}

.property-gallery-modal .carousel-control-prev,
.property-gallery-modal .carousel-control-next {
    width: 82px;
    opacity: 1;
}

.property-gallery-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 47px;
    height: 47px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    font-size: 21px;
    backdrop-filter: blur(8px);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 767px) {
    .property-gallery-slide {
        padding: 18px 58px;
    }

    .property-gallery-modal .carousel-control-prev,
    .property-gallery-modal .carousel-control-next {
        width: 54px;
    }
}

@media (max-width: 575px) {
    .property-gallery-modal-header {
        min-height: 66px;
        padding: 10px 14px;
    }

    .property-gallery-slide {
        height: calc(100vh - 66px);
        padding: 12px 45px;
    }

    .property-gallery-modal .carousel-control-prev,
    .property-gallery-modal .carousel-control-next {
        width: 43px;
    }

    .property-gallery-arrow {
        width: 37px;
        height: 37px;
        font-size: 17px;
    }

    .property-gallery-caption {
        bottom: 13px;
        max-width: calc(100vw - 28px);
    }
}
