/* Photo cards fill edge to edge. The frame follows the photograph's ratio,
   preserving full composition and source watermarks without letterboxing.
   Fullscreen viewers, video, PDF covers, logos and SVG diagrams retain their sizing. */
html :is(body,#main) :is(
  .cooking-teaser-image,
  .aj-photo img,
  .aj-card-image img,
  .at-home-image img,
  .at-photo img,
  .at-nearby img,
  .autumn-photo-uncropped img,
  .autumn-spot-main img.autumn-spot-uncropped,
  .bulguksa-guide img,
  .city-photos img,
  .fashion-style-images img,
  .recipe-photo img,
  .culture-photo img,
  .idol-image-link img,
  .idol-member-photo img,
  .idol-group-photo .idol-image-link img,
  .beauty-guide-photo img,
  .culture-path-photo img,
  .catalog-result-image img,
  .drama-photo img,
  .drama-intro .drama-cast-photo img,
  .drama-guide .drama-poster img,
  .easy-food img,
  .event-carousel-image img,
  .events-board .event-photo img,
  .booking-option img,
  .experience-page .experience-photo img,
  .experience-photo-complete img,
  .focused-home .home-photo-complete img,
  .food-stop-photo img,
  .food-photo img,
  .utensil-picture img,
  .gallery-grid img,
  .compact-destination .gallery-figure img,
  .destination-guide .city-intro img,
  .destination-guide .destination-photo .destination-photo-link img,
  .gatbawi-page .olle-cover img,
  .gatbawi-page .olle-gallery img,
  .gatbawi-comparison img,
  .hanbok-intro img,
  .hanbok-gallery img,
  .hanbok-detail-photo img,
  .help-picture-card img,
  .venue-howto-body img,
  .hiking-intro img,
  .mountain-card img,
  .mountain-photo img,
  .mountain-photo-grid img,
  .history-photo img,
  .home-now-beauty img,
  .home-now-drama img,
  .home-sidebar-card img,
  .jw-hero img,
  .jw-photo-grid img,
  .denim-pieces img,
  .denim-detail-grid img,
  .film-look>img,
  .film-accessory-grid img,
  .fashion-mood-links img,
  .fashion-accessory-card img,
  .kg-guide #choose>.kg-photo img,
  .kg-hero .kg-photo img,
  .kshop-images .kshop-photo img,
  .kshop-card .kshop-photo img,
  .kshop-intro aside .kshop-photo img,
  .journal-home .hiking-home-grid img,
  .managed-guide .gallery-figure img,
  .journal-home .discover-all .featured-mini img,
  .region-card img,
  .discovery-card .discovery-cover img,
  .managed-guide .guide-preview-grid img,
  .suncheon-autumn-photos figure:last-child img,
  .suncheon-autumn-thumbs a:last-child img,
  .suncheon-autumn-photos figure:first-child img,
  .suncheon-autumn-thumbs a:nth-child(3) img,
  .suncheon-autumn-thumbs a:nth-child(4) img,
  .suncheon-autumn-photos figure:nth-child(4) img,
  .suncheon-autumn-photos figure:nth-child(5) img,
  .nav-right-photo img,
  .suncheon-autumn-home .suncheon-autumn-cover>img.suncheon-archive-cover,
  html body aside.home-partner-card>figure img,
  .nae-gallery .nae-panorama img,
  .nae-hero figure img,
  .nae-autumn-photos figure img,
  .nae-guide .nae-autumn-extra-gallery img,
  .october-card img,
  #main .idol-member-photo .idol-image-link>img,
  #main .stays-intro .stay-photo img,
  #main .drama-cover-photo img,
  #main .guide-preview-grid img,
  #main .featured-mini img,
  .menu-feature-photo img,
  #main .kshop-intro .kshop-photo img,
  #main.journal-home .journal-story-main>a>img,
  .city-intro img,
  .hiking-home-grid img,
  .airport-destination-card .airport-card-photo,
  .route-reference-image img,
  .scenic-gallery-single img,
  .scenic-photo-story img,
  .scenic-trip img,
  .palace-photo img,
  .signature-step img,
  .signature-product img,
  .sinsido .photo-grid img,
  .stay-photo img,
  .kt-visual img,
  .transport-ticket-options>article>img,
  .transport-ticket-image img,
  .metro-ticket-visuals img,
  .hero-split .hero-mountain-link img,
  .ski-photo img,
  .winter-hiking-photo img,
  .winter-cards .winter-photo-woljeongsa img,
  .winter-snow-grid img,
  .ys-arrival-photo img,
  .ys-photo img,
  .ys-gallery .ys-photo img,
  .ys-stop-image .ys-photo img,
  #main :is(.region-card,.discovery-cover,.catalog-result-image,.food-photo,.drama-photo,.stay-photo,.island-photo,.history-photo,.kshop-photo,.idol-card-photo,.ski-photo,.event-photo,.palace-photo) img
):not([src*=".svg"]):not([hidden]){
  display:block;width:100%!important;height:auto!important;min-height:0!important;
  max-height:none!important;aspect-ratio:auto!important;object-fit:cover!important;
  box-sizing:border-box;
}
/* Remove the extra matte around image-only card frames; keep captions separate. */
html body :is(.aj-card-image,.destination-photo-link,.catalog-result-image,.idol-image-link,.kshop-photo-link,.home-featured-photo){
  padding:0!important;height:auto!important;min-height:0!important;aspect-ratio:auto!important;
  overflow:hidden;
}
html body .aj-card-image img{border:0;border-radius:0}
html body .aj-home-card{overflow:hidden}
html body :is(.ys-hero-photo,.gyeongju-feature-hero>a){padding:0!important;overflow:hidden}
html body .ys-hero-photo>img{border-radius:0}
html body .gyeongju-feature-hero>a>img{border-radius:0}
/* Small maps retain compact thumbnails and fill their frames. */
html :is(body,#main) :is(.aj-stop-list li img,
  .city-photo-pin img,
  .city-map-thumb img,
  .city-popup-thumb img,
  .city-practical-card .city-card-thumb img,
  .ys-popup img,
  .map-place-popup .map-place-thumb) {object-fit:cover!important}
