/* Product detail page: show every photo in full, never cropped.
   Loaded only by web/product-details.blade.php, after custom.css.

   The main slide already sizes itself to the photo's own aspect ratio
   (custom.css, ".product-thumbs-slider .tf-product-media-main"), and the
   uploaded files are no longer center-cropped server-side
   (FileHelper::uploadScaledImage). What was left cropping the photos
   here were the small fixed-size thumbnails, which used the theme's
   object-fit: cover. Switching them to contain keeps the whole frame
   visible; the leftover space is filled with the page background.

   The square listing cards are intentionally untouched - they keep the
   admin's Adjust Thumbnail crop (ThumbnailCropHelper). */

/* Main slide box. Swiper sizes the wrapper to its tallest slide, and each
   photo now keeps its own aspect ratio, so a landscape photo next to a
   portrait one would sit pinned to the top with blank space underneath
   (and the prev/next arrows floating over that blank space). Centering
   the photo vertically in the box keeps it looking deliberate, and
   avoids a height jump between slides that autoHeight would cause. */
.product-thumbs-slider .tf-product-media-main .swiper-slide {
    display: flex;
    align-items: center;
}

.product-thumbs-slider .tf-product-media-main .swiper-slide > .item {
    width: 100%;
}

/* Thumbnail rail beside/below the main image. */
.product-thumbs-slider .tf-product-media-thumbs .item {
    background: var(--white, #fff);
}

.tf-product-media-thumbs .swiper-slide .item img {
    object-fit: contain;
}

/* Thumbnail rail inside the click-to-open PhotoSwipe lightbox. */
.pswp-custom-thumb img {
    object-fit: contain;
}
