.hp-block-content-gallery{height:auto;align-self:start}.hp-content-gallery{margin-block:1.5rem}.hp-content-gallery figure{position:relative;margin:0;overflow:hidden;background:var(--bs-tertiary-bg);border-radius:calc(var(--hp-card-radius)*.75)}.hp-content-gallery img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}.hp-content-gallery figcaption{padding:.55rem;color:var(--bs-secondary-color);font-size:.82rem}.hp-gallery-grid{display:grid;grid-template-columns:repeat(var(--hp-gallery-columns),minmax(0,1fr));gap:var(--hp-grid-gap)}.hp-gallery--content-slider .hp-gallery-swiper{--swiper-theme-color:var(--hp-accent);--hp-slider-pagination-idle:var(--bs-border-color);padding-block-end:2rem}.hp-gallery--content-slider figure{border-radius:var(--hp-card-radius)}.hp-gallery--content-slider img{aspect-ratio:16/9}.hp-gallery--content-grid .hp-gallery-grid{padding:.75rem;border:1px solid var(--bs-border-color);border-radius:var(--hp-card-radius);background:var(--bs-body-bg)}.hp-gallery--content-mosaic .hp-gallery-grid{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-flow:dense}.hp-gallery--content-mosaic figure:first-child,.hp-gallery--content-mosaic figure:nth-child(2){grid-column:span 2;grid-row:span 2}.hp-gallery--content-mosaic figure:first-child img,.hp-gallery--content-mosaic figure:nth-child(2) img{height:100%;aspect-ratio:4/3}.hp-gallery--content-mosaic figure:nth-child(n+3) img{aspect-ratio:1/1}.hp-gallery--content-mosaic figcaption{position:absolute;inset:42% 0 0;display:flex;align-items:end;background:linear-gradient(transparent,rgba(0,0,0,.85));color:#fff;font-weight:700}@media(max-width:767.98px){.hp-gallery-grid,.hp-gallery--content-mosaic .hp-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hp-gallery--content-mosaic figure:first-child,.hp-gallery--content-mosaic figure:nth-child(2){grid-column:span 2;grid-row:auto}}
.hp-gallery--content-slider .hp-gallery-swiper{overflow:hidden}
.hp-gallery-swiper[data-swiper-height]:not([data-swiper-height="0"]){height:var(--hp-gallery-swiper-height)}.hp-gallery-swiper[data-swiper-height]:not([data-swiper-height="0"]) .swiper-wrapper,.hp-gallery-swiper[data-swiper-height]:not([data-swiper-height="0"]) .swiper-slide,.hp-gallery-swiper[data-swiper-height]:not([data-swiper-height="0"]) .swiper-slide>a{height:max(1px,calc(var(--hp-gallery-swiper-height) - 2rem))}.hp-gallery-swiper[data-swiper-height]:not([data-swiper-height="0"]) .swiper-slide img{height:100%;aspect-ratio:auto;object-fit:cover}

.hp-gallery-lightbox[hidden]{display:none}
.hp-gallery-lightbox{position:fixed;inset:0;z-index:11000;display:grid;place-items:center;padding:2rem;background:rgba(0,0,0,.9)}
.hp-gallery-lightbox__stage{position:relative;display:grid;place-items:center;width:100%;height:100%;background:transparent}
.hp-gallery-lightbox__scroll{position:absolute;inset:0;display:grid;place-items:center;overflow:hidden;overscroll-behavior:contain}
.hp-gallery-lightbox__image{display:block;max-width:100%;max-height:calc(100vh - 4rem);max-height:calc(100dvh - 4rem);width:auto;height:auto;object-fit:contain;cursor:pointer;user-select:none}
.hp-gallery-lightbox__close,.hp-gallery-lightbox__zoom,.hp-gallery-lightbox__nav{position:absolute;z-index:2;display:grid;place-items:center;border:0;border-radius:50%;background:rgba(20,20,22,.78);color:#fff;box-shadow:0 4px 18px rgba(0,0,0,.25)}
.hp-gallery-lightbox__close{inset-block-start:0;inset-inline-end:0;width:2.75rem;height:2.75rem;font-size:1.35rem}
.hp-gallery-lightbox__nav{inset-block-start:50%;width:3rem;height:3rem;font-size:1.45rem;transform:translateY(-50%)}
.hp-gallery-lightbox__nav--prev{inset-inline-start:0}
.hp-gallery-lightbox__nav--next{inset-inline-end:0}
.hp-gallery-lightbox__counter{position:absolute;inset-block-end:0;inset-inline-start:50%;padding:.3rem .65rem;border-radius:999px;background:rgba(20,20,22,.78);color:#fff;font-size:.78rem;font-weight:700;transform:translateX(-50%)}
.hp-gallery-lightbox-open{overflow:hidden}
.hp-content-gallery figure>a{cursor:zoom-in}
@media(max-width:575.98px){.hp-gallery-lightbox__nav{width:2.5rem;height:2.5rem}.hp-gallery-lightbox__close{width:2.5rem;height:2.5rem}}
@media(prefers-reduced-motion:no-preference){.hp-gallery-lightbox:not([hidden]){animation:hp-gallery-lightbox-in .16s ease-out}@keyframes hp-gallery-lightbox-in{from{opacity:0}to{opacity:1}}}

/* Slider yüksekliği 0 (otomatik): görsel kırpılmaz, tam genişlikte kendi oranında; uzun görselde sayfa kayar */
.hp-gallery--content-slider .hp-gallery-swiper[style*="--hp-gallery-swiper-height:0px"] .swiper-slide img{width:100%;height:auto;aspect-ratio:auto;object-fit:contain}

/* Dikey görsellerde: genişliğe sığdır + aşağı kaydır modu ve fare büyüteci */
.hp-gallery-lightbox__zoom{inset-block-start:0;inset-inline-end:3.5rem;width:2.75rem;height:2.75rem;font-size:1.3rem;cursor:pointer}
.hp-gallery-lightbox__zoom[hidden]{display:none}
.hp-gallery-lightbox.is-scroll .hp-gallery-lightbox__scroll{display:block;overflow:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.hp-gallery-lightbox.is-scroll .hp-gallery-lightbox__image{max-height:none!important;margin-inline:auto}
.hp-gallery-loupe{position:fixed;z-index:11100;border:3px solid #fff;border-radius:50%;background-color:#fff;background-repeat:no-repeat;box-shadow:0 8px 32px rgba(0,0,0,.45);pointer-events:none}
.hp-gallery-loupe[hidden]{display:none}
@media(hover:none),(pointer:coarse){.hp-gallery-loupe{display:none!important}}
