/*
 * 고운빛의원 병원전경 v1.3
 * 기존 main.css, sub.css, bxSlider 선택자와 충돌하지 않는 독립 클래스 사용.
 * 메인 2장/모바일 1장, 서브 전체 1장, 서브 사진 및 바깥 배경 흰색.
 */
.goun-clinic-gallery.goun-gallery-v13 {
    position: relative;
    width: 100%;
    max-width: 1180px;
    margin: 30px auto 0;
    padding: 0 0 38px;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
    box-sizing: border-box;
}
.goun-clinic-gallery.goun-gallery-v13 .goun-v13-viewport {
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    touch-action: pan-y;
}
.goun-clinic-gallery.goun-gallery-v13 .goun-v13-track {
    display: flex;
    align-items: stretch;
    width: max-content;
    margin: 0;
    padding: 0;
    gap: 18px;
    list-style: none;
    will-change: transform;
    box-sizing: border-box;
}
.goun-clinic-gallery.goun-gallery-v13 .goun-v13-item {
    position: relative;
    display: block;
    flex: 0 0 calc((100vw - 18px) / 2);
    min-width: 0;
    height: 350px;
    margin: 0;
    padding: 0;
    float: none;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid #eee;
    background: #fff;
    box-sizing: border-box;
}
.goun-clinic-gallery.goun-gallery-v13 .goun-v13-item img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    background: #fff;
}
/* 세로 원본은 전체를 보이게 하고 남는 영역은 흰색으로 처리합니다. */
.goun-clinic-gallery.goun-gallery-v13 .goun-v13-item.goun-photo-portrait img {
    object-fit: contain;
}
.goun-clinic-gallery.goun-gallery-v13 .goun-v13-label {
    position: absolute;
    z-index: 2;
    bottom: 16px;
    left: 16px;
    max-width: calc(100% - 32px);
    margin: 0;
    padding: 9px 16px;
    border-radius: 24px;
    background: rgba(35, 35, 35, .78);
    color: #fff;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 600;
    letter-spacing: -.02em;
    white-space: normal;
    box-sizing: border-box;
}
.goun-clinic-gallery.goun-gallery-v13 .goun-v13-nav {
    position: absolute;
    z-index: 5;
    top: calc((100% - 38px) / 2);
    left: 8px;
    right: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    transform: translateY(-50%);
}
.goun-clinic-gallery.goun-gallery-v13 .goun-v13-nav button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 50%;
    background: rgba(51,51,51,.78);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 4px 14px rgba(0,0,0,.14);
}
.goun-clinic-gallery.goun-gallery-v13 .goun-v13-nav button:hover,
.goun-clinic-gallery.goun-gallery-v13 .goun-v13-nav button:focus {
    background: #555;
    outline: 2px solid #fff;
    outline-offset: 2px;
}
.goun-clinic-gallery.goun-gallery-v13 .goun-v13-counter {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    text-align: center;
    color: #666;
    font-size: 13px;
    font-weight: 600;
    line-height: 28px;
    letter-spacing: .08em;
}
/* 서브페이지는 모든 기기에서 1장씩 크게 표시하고 분홍색 배경을 없앱니다. */
.goun-sub .goun-clinic-gallery.goun-gallery-v13.goun-gallery-single {
    max-width: 1000px;
    margin: 26px auto 42px;
    background: #fff;
}
.goun-sub .goun-gallery-v13.goun-gallery-single .goun-v13-item {
    height: 550px;
    border-color: #eee;
    background: #fff;
}
.goun-sub .goun-gallery-v13.goun-gallery-single .goun-v13-item img {
    object-fit: contain;
    background: #fff;
}
.goun-sub .goun-gallery-v13.goun-gallery-single .goun-v13-viewport {
    background: #fff;
}
@media (min-width: 768px) and (max-width: 1023px) {
    .goun-clinic-gallery.goun-gallery-v13 .goun-v13-item { height: 290px; }
    .goun-sub .goun-gallery-v13.goun-gallery-single .goun-v13-item { height: 440px; }
}
@media (max-width: 767px) {
    .goun-clinic-gallery.goun-gallery-v13 { margin-top: 20px; }
    .goun-clinic-gallery.goun-gallery-v13 .goun-v13-item { height: 300px; }
    .goun-sub .goun-gallery-v13.goun-gallery-single .goun-v13-item { height: 330px; }
    .goun-clinic-gallery.goun-gallery-v13 .goun-v13-label {
        bottom: 12px;
        left: 12px;
        max-width: calc(100% - 24px);
        padding: 7px 12px;
        font-size: 13px;
    }
    .goun-clinic-gallery.goun-gallery-v13 .goun-v13-nav { left: 5px; right: 5px; }
    .goun-clinic-gallery.goun-gallery-v13 .goun-v13-nav button { width: 40px; height: 40px; font-size: 22px; }
}
@media (max-width: 420px) {
    .goun-clinic-gallery.goun-gallery-v13 .goun-v13-item { height: 250px; }
    .goun-sub .goun-gallery-v13.goun-gallery-single .goun-v13-item { height: 260px; }
}
@media (prefers-reduced-motion: reduce) {
    .goun-clinic-gallery.goun-gallery-v13 .goun-v13-track { transition: none !important; }
}
