.haway-gallery{
    max-width:1400px;
    margin:0 auto 40px;
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:20px;
}
.haway-gallery__hero-image img,.haway-gallery__thumb img{
    display:block;width:100%;height:100%;object-fit:cover;border-radius:10px;
}
.haway-gallery__hero-image{min-height:420px;}
.haway-gallery__side{display:grid;grid-template-columns:1fr 1fr;gap:20px;}
.haway-gallery__thumb{min-height:190px;}
.haway-gallery__item{position:relative;cursor:pointer;overflow:hidden;}
.haway-gallery__item:focus-visible{outline:3px solid #596b52;outline-offset:3px;}
.haway-gallery__item img{transition:transform .25s ease;}
.haway-gallery__item:hover img{transform:scale(1.025);}
.haway-more-photos{position:absolute;right:15px;bottom:15px;background:#fff;padding:10px 15px;border-radius:8px;font-weight:600;cursor:pointer;z-index:1;}
.haway-popup{position:fixed;inset:0;background:rgba(0,0,0,.94);display:none;justify-content:center;align-items:center;z-index:999999;padding:55px 70px;box-sizing:border-box;}
.haway-popup.active{display:flex;}
.haway-popup-content{position:relative;width:min(1100px,100%);height:100%;display:flex;align-items:center;justify-content:center;}
.haway-popup img{display:block;max-width:100%;max-height:calc(100vh - 130px);width:auto;height:auto;object-fit:contain;border-radius:4px;}
.haway-close-btn,.haway-nav{position:absolute;border:0;background:rgba(255,255,255,.14);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:2;}
.haway-close-btn{top:-42px;right:0;width:42px;height:42px;border-radius:50%;font-size:30px;line-height:1;}
.haway-nav{top:50%;transform:translateY(-50%);width:48px;height:58px;border-radius:8px;font-size:30px;}
.haway-prev{left:-62px;}.haway-next{right:-62px;}
.haway-close-btn:hover,.haway-nav:hover{background:rgba(255,255,255,.28);}
.haway-gallery-counter{position:absolute;bottom:-36px;left:0;right:0;text-align:center;color:#fff;font-size:14px;letter-spacing:.04em;}
body.haway-gallery-open{overflow:hidden;}
@media(max-width:768px){
    .haway-gallery{grid-template-columns:1fr;gap:10px;}
    .haway-gallery__hero-image{min-height:260px;}
    .haway-gallery__side{gap:10px;}
    .haway-gallery__thumb{min-height:120px;}
    .haway-popup{padding:55px 12px;}
    .haway-popup-content{width:100%;}
    .haway-popup img{max-width:100%;max-height:calc(100vh - 150px);}
    .haway-prev{left:4px;}.haway-next{right:4px;}
    .haway-nav{width:40px;height:48px;font-size:24px;background:rgba(0,0,0,.45);}
    .haway-close-btn{top:-42px;right:2px;}
}
