/* ============================================================================
   렌탈 상품 상세 — 이미지 로딩 최적화 (2026-12-02)
   대상: /product.php?rental=…  (includes/rental_detail.php)
   목적: ① 상단 대표 이미지 우선 로드(fetchpriority=high)
         ② 상세 이미지 지연·비동기 로드(loading=lazy decoding=async)
         ③ 상세 이미지 세로 무여백 연결 + 가로는 헤더와 같은 1320px 컨테이너 폭에 맞춤
   주의: 아래 규칙은 rental-20261123.css 뒤에 로드되어 그쪽 width 규칙을 덮어쓴다.
         2026-12-02 사용자 확정 — 1,320px 컨테이너에 width:100%로 꽉 맞춘다.
         (600px 등 저화질 원본은 일시적으로 확대되어 보일 수 있으나, 고화질 교체가 진행 중이다.)
   ========================================================================== */

/* 상세 설명 영역 — 조각 이미지 사이에 어떤 여백도 생기지 않게 한다 */
.rt-detailimg,
.rt-detailimg.sf-detail-gallery {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  background: #fff;
}

/* 상세 이미지 1장 = 컨테이너 폭(최대 1320px) 100%, 원본 비율 유지, 블록 */
.rt-detailimg img,
.rt-detailimg.sf-detail-gallery img,
.rt-detailimg .rt-htmldetail img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: bottom;
  /* inline 요소의 baseline 여백(약 4px)까지 제거 */
}

/* 연속 조각 사이 간격 0 (margin collapse 방지) */
.rt-detailimg img + img,
.rt-detailimg .rt-htmldetail img + img {
  margin-top: 0;
}

/* 상단 대표 이미지 — 화면에 먼저 그린다 */
.rt-media__main img#rtMainImg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 상세 영역 자체가 컨테이너 폭을 넘지 않게 */
.rt-detailsec { max-width: 100%; }
