/* Desktop portrait gallery override. Load after page-specific gallery styles. */
@media (min-width: 992px) {
  #detail_show > .container > .row > .col-md-5 .imgBox {
    position: sticky !important;
    top: 16px !important;
    width: min(41.66666667vw, 413px) !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  #detail_show > .container > .row > .col-md-5 .imgBox > .fotorama {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    overflow: visible !important;
  }

  #detail_show > .container > .row > .col-md-5 .fotorama__wrap {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  #detail_show > .container > .row > .col-md-5 .fotorama__stage {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 2 / 3 !important;
    overflow: hidden !important;
    background: #f7f7f7 !important;
  }

  #detail_show > .container > .row > .col-md-5
  .fotorama__stage__shaft,
  #detail_show > .container > .row > .col-md-5
  .fotorama__stage__frame {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
  }

  #detail_show > .container > .row > .col-md-5
  .fotorama__stage__frame .fotorama__img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    max-width: none !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
  }
}
