/**
 * Shared media helpers — existing selectors only (no rename).
 * + GLOBAL MOBILE FIT (CSS only, no JS) — AOS02/03/04 head에서 공통 로드
 */
.travel_card img,
.product_thumb img,
.aos02_reserve_product_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width:768px){
  html, body{
    max-width:100%;
    overflow-x:hidden;
  }

  img, video, iframe, embed, object{
    max-width:100%;
    height:auto;
  }

  .aos02_wrap{
    max-width:100%;
    overflow-x:hidden;
    box-sizing:border-box;
  }

  .aos02_wrap .aos02_inner,
  .aos02_inner{
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box;
    padding-left:16px;
    padding-right:16px;
  }

  /* iOS: 16px 미만 입력창 포커스 시 자동 확대 → 화면 넘침 방지 */
  html{
    -webkit-text-size-adjust:100%;
    text-size-adjust:100%;
  }

  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea{
    max-width:100%;
    box-sizing:border-box;
    font-size:16px !important;
  }

  /* 테이블 가로 스크롤 래퍼 */
  .aos02_mypage_table_wrap,
  .avn-notice-list-table-wrap,
  .fare_table_wrap,
  .price_table,
  .cancel_table,
  .view_meal_table{
    display:block;
    width:100%;
    max-width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }

  /* 상품 상세: 본문/예약 세로 배치 */
  .tour_view.is-views .view_body_layout,
  .tour_view .view_body_layout{
    display:flex !important;
    flex-direction:column !important;
    grid-template-columns:1fr !important;
    gap:16px !important;
  }

  .tour_view.is-views .view_body_layout > .reserve_box,
  .tour_view .view_body_layout > .reserve_box,
  .tour_view .reserve_box{
    width:100% !important;
    max-width:100% !important;
    position:relative !important;
    top:auto !important;
    order:-1;
  }

  .tour_view .detail_left,
  .tour_view .view_detail,
  .tour_view .view_div,
  .aos02_mypage_content,
  .aos02_mypage_section{
    min-width:0;
    max-width:100%;
    box-sizing:border-box;
  }

  /* 포함/불포함 2열 → 1열 */
  #viewInclude .include_grid,
  .tour_view.is-views #viewInclude .include_grid{
    grid-template-columns:1fr !important;
  }

  #viewInclude .include_box + .include_box,
  .tour_view.is-views #viewInclude .include_box + .include_box{
    border-left:0 !important;
    border-top:1px solid #e5e7eb;
  }
}
