/*
Theme Name: Bellanders Photo Responsive
Theme URI: https://bellanders.com/
Author: Bellanders
Description: Minimal responsiv fotosida för bellanders.com.
Version: 1.1.0
Text Domain: bellanders-photo-responsive
*/
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; background: #111; }
body { overflow: hidden; }
.bellanders-photo {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #111;
}
.bellanders-photo::before {
  content: "";
  position: absolute;
  inset: -24px;
  background: var(--photo) center / cover no-repeat;
  filter: blur(22px) brightness(.58);
  transform: scale(1.08);
}
.bellanders-photo img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
}
/* På smalare skärmar visar vi hela bilden i stället för att kapa familjen. */
@media (max-aspect-ratio: 4/5) {
  .bellanders-photo img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
  }
}
@media (orientation: portrait) and (max-width: 900px) {
  .bellanders-photo img {
    width: 100%;
    height: auto;
    max-height: 100dvh;
    object-fit: contain;
  }
}
