/* Original image files remain untouched; fit each complete photograph in the frame. */
#top_all { height: auto; background: #fff; }
#top { height: auto; margin: 15px 0 12px; }
#top #slide_lat { width: 100%; height: auto; overflow: visible; }
#top #slide { width: 100%; height: auto; float: none; }
.hpm-slide { width: 100%; height: 282px; display: grid; grid-template-columns: minmax(0, 666px) minmax(0, 1fr); border: 1px solid #dce4eb; border-radius: 10px; box-sizing: border-box; overflow: hidden; box-shadow: 0 3px 12px #203c5610; background: #fff; }
.hpm-slide-images { position: relative; min-width: 0; height: 280px; background: #f1f4f7; overflow: hidden; }
.hpm-slide img { inset: 0; transform: none; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; transition: opacity .6s ease; }
.hpm-caption { position: static; min-width: 0; height: auto; padding: 22px 20px 16px; background: #fff; border-left: 1px solid #dce4eb; display: flex; flex-direction: column; justify-content: space-between; box-sizing: border-box; }
.hpm-caption h2 { margin: 0; padding: 0; color: #254d6b; font-size: 18px; line-height: 1.45; background: none; }
.hpm-slide-controls { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.hpm-slide-count { font: 12px Arial, sans-serif; letter-spacing: 2px; color: #7c8d9a; }
.hpm-slide-controls button { width: 32px; height: 30px; margin-left: 5px; border: 1px solid #dce4eb; border-radius: 6px; background: #f6f8fa; color: #254d6b; font-size: 18px; cursor: pointer; }
.hpm-slide-controls button:hover { background: #254d6b; border-color: #254d6b; color: #fff; }
.hpm-slide-controls button:focus-visible { outline: 2px solid #2d75a4; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .hpm-slide img { transition: none; } }
