.hospital-gallery,
.hospital-gallery .container,
.hospital-gallery .row,
.hospital-gallery .image {
    min-width: 0;
    max-width: 100%;
}

.hospital-gallery .img-card {
    margin: 12px 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgb(0 0 0 / 10%), 0 1px 2px rgb(0 0 0 / 6%);
}

.hospital-gallery .img-wrapper {
    position: relative;
}

.hospital-gallery .img-wrapper a {
    display: block;
}

.hospital-gallery .img-wrapper img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.hospital-gallery .img-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgb(0 0 0 / 55%);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.hospital-gallery .img-wrapper:hover .img-overlay,
.hospital-gallery .img-wrapper:focus-within .img-overlay {
    opacity: 1;
}

.hospital-gallery .img-card h6 {
    position: relative;
    margin: 0;
    padding: 15px;
    color: #042d59;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.hospital-gallery .img-card h6::before {
    position: absolute;
    inset-block: 12px auto;
    inset-inline-start: 6px;
    width: 2px;
    height: 50%;
    border-radius: 15px;
    background: #25b8c5;
    content: "";
}

.hospital-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 48px 16px;
    background: rgb(0 0 0 / 85%);
}

.hospital-gallery-lightbox[hidden] {
    display: none;
}

.hospital-gallery-lightbox img {
    display: block;
    min-width: 0;
    max-width: min(calc(100% - 100px), 1100px);
    max-height: calc(100vh - 96px);
    object-fit: contain;
}

.hospital-gallery-lightbox button {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: #042d59;
    font-size: 30px;
    line-height: 1;
}

.hospital-gallery-lightbox .hospital-gallery-close {
    position: absolute;
    inset-block-start: 10px;
    inset-inline-end: 16px;
}

body.hospital-gallery-open {
    overflow: hidden;
}

body.rtl-hospital-detail {
    overflow-x: clip;
}

html[dir="rtl"] .hospitals-details,
html[dir="rtl"] .information-section,
html[dir="rtl"] .rooms-section {
    min-width: 0;
    max-width: 100%;
}

html[dir="rtl"] .hospitals-details .swiper,
html[dir="rtl"] .hospitals-details .row > *,
html[dir="rtl"] .information-section > div,
html[dir="rtl"] .rooms-section > div {
    min-width: 0;
    max-width: 100%;
}

html[dir="rtl"] .information-section img,
html[dir="rtl"] .rooms-section img,
html[dir="rtl"] .information-section iframe,
html[dir="rtl"] .rooms-section iframe {
    max-width: 100%;
}

html[dir="rtl"] .information-section table,
html[dir="rtl"] .rooms-section table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

html[dir="rtl"] .information-section,
html[dir="rtl"] .rooms-section {
    overflow-wrap: anywhere;
}

@media (max-width: 767px) {
    html[dir="rtl"] .hospitals-details .hospitals-details-card-wrapper {
        margin-inline: 0;
    }

    .hospital-gallery-lightbox {
        gap: 4px;
        padding-inline: 8px;
    }

    .hospital-gallery-lightbox button {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }
}
