#Job { box-sizing: border-box; display: flex; margin-bottom: $unit-3x; width: 100%; // prettier-ignore @media only screen and (max-width: 800px) and (max-height: 920px) and (-webkit-min-device-pixel-ratio: 2) { align-items: center; flex-direction: column; gap: $unit; justify-content: center; width: 100%; // max-width: 447px; } select { flex-grow: 1; width: auto; } .JobDetails { box-sizing: border-box; display: flex; flex-direction: column; width: 100%; h3 { font-size: $font-medium; font-weight: $medium; padding: $unit 0 $unit * 2; } select { flex-grow: 0; } .JobSkills { flex-grow: 2; } } .JobImage { $height: 252px; $width: 447px; aspect-ratio: 7/9; background: url('/images/background_a.jpg'); background-size: 500px 281px; border-radius: $unit; box-sizing: border-box; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); display: block; isolation: isolate; flex-grow: 2; flex-shrink: 0; height: $height; margin-right: $unit * 3; max-height: $height; max-width: $width; overflow: hidden; position: relative; width: $width; transition: box-shadow 0.15s ease-in-out; // prettier-ignore @media only screen and (max-width: 800px) and (max-height: 920px) and (-webkit-min-device-pixel-ratio: 2) { margin-right: 0; width: 100%; } @include breakpoint(phone) { aspect-ratio: 16/9; margin: 0; width: 100%; height: inherit; } img { -webkit-filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.48)); filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.48)); position: relative; top: $unit * -4; left: 50%; transform: translateX(-50%); width: 100%; z-index: 2; } .Overlay { background: none; position: absolute; z-index: 1; } } .JobSkills { display: flex; flex-direction: column; gap: $unit; } }