:root {
    color-scheme: light;
    --elske-mint: #55fac4;
    --elske-highlight: #55fac4b3;
    --elske-display: "Archivo Black", "Arial Black", Arial, sans-serif;
    --elske-inset: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    color: #000;
    background: #ccc;
    font: 15px/1.5 Arial, sans-serif;
}

a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #027558;
    outline-offset: 3px;
}

.elske-backdrop {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.elske-backdrop video, .elske-backdrop-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.elske-backdrop video { object-position: left center; }
.elske-backdrop-photo { position: absolute; inset: 0; }
/* Scale the selected rectangle to cover the backdrop and center that rectangle. */
.elske-backdrop-photo--cropped {
    inset: 50% auto auto 50%;
    width: max(calc(100% * var(--photo-width-scale)), calc(100dvh * var(--photo-height-scale)));
    height: auto;
    transform: translate(var(--photo-offset-x), var(--photo-offset-y));
}
.elske-backdrop::before, .elske-backdrop::after {
    content: "";
    position: absolute;
    z-index: 1;
}
.elske-backdrop::before {
    inset: 0 auto auto 0;
    width: 300vw;
    height: 300vw;
    transform: rotate(-30deg) translate(-600px, -700px) scale(2);
    background: #ffff0020 url("../media/images/dummy/elske-pattern.png") repeat 0 0 / 88px 40px;
}
.elske-backdrop::after {
    inset: 0;
    background: #0003 url("../media/images/dummy/dots.png") repeat 0 0 / 20px 20px;
}

.elske-shell {
    position: absolute;
    top: 20vh;
    left: 6vh;
    width: 800px;
    min-height: 20vh;
}
.elske-header { padding: var(--elske-inset) var(--elske-inset) 0; }
.elske-logo {
    position: absolute;
    inset: -126px 0 auto;
    text-align: center;
    color: var(--elske-highlight);
    font: 100px/1 var(--elske-display);
    text-decoration: none;
}
.elske-logo-reversed { display: inline-block; transform: scaleX(-1); }
.elske-logo:hover { color: white; }
.elske-menu {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    min-height: 37px;
}
.elske-menu a {
    justify-self: start;
    font: 30px/1.2 var(--elske-display);
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    translate: 0 -3px;
}
.elske-menu a:nth-child(2) { justify-self: center; }
.elske-menu a:last-child { justify-self: end; }
.elske-menu a[aria-current], .elske-work-heading a, .elske-project-list a[aria-current] {
    box-shadow: inset 0 -.36em var(--elske-highlight);
}
.elske-menu a:hover, .elske-work-heading a:hover { box-shadow: inset 0 -.36em #d2b4ffb3; }

.elske-page .elske-header, .elske-page .elske-content,
.elske-contact-page .elske-header { background: white; }
.elske-home .elske-menu a { color: #fff; }

.elske-content {
    padding: var(--elske-inset);
    margin-bottom: 100px;
}
.elske-page .elske-overview { padding-top: 30px; padding-bottom: 30px; }
.elske-home .elske-content { min-height: 100px; }
.elske-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.elske-tile {
    position: relative;
    display: grid;
    align-items: end;
    aspect-ratio: 1;
    background: #eee;
    color: white;
    text-decoration: none;
}
.elske-tile:hover { box-shadow: 0 0 0 5px var(--elske-mint); }
.elske-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Cover the square tile with the visible part of the source photo. */
.elske-online-photo-crop {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.elske-online-photo-crop img, .elske-overview img[data-work-photo-crop] {
    inset: 50% auto auto 50%;
    width: max(100%, calc(100% * var(--photo-crop-ratio)));
    height: auto;
    transform: translate(-50%, var(--photo-crop-center));
}
.elske-overview .elske-tile { overflow: hidden; }
.elske-overview .elske-tile img[data-work-legacy-crop] {
    top: -5%;
    height: 140%;
    object-position: center top;
}
.elske-tile h2 {
    position: relative;
    margin: 0;
    padding: 10px;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 1px 3px #0009;
    font: 20px/1.12 var(--elske-display);
}
.elske-online .elske-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 20px; }
.elske-instagram-link { margin: 20px 0 0; text-align: center; }

.elske-online-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-top: 24px;
}
.elske-online-pagination > * {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    min-height: 44px;
    color: inherit;
    text-decoration: none;
}
.elske-online-pagination [aria-current="page"] {
    color: white;
    background: black;
}
.elske-online-pagination a:hover { text-decoration: underline; }


body.elske-video-open { overflow: hidden; }
body.overlay-shown .elske-video-overlay {
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 64px 16px 16px;
    background: rgb(0 0 0 / 90%);
    cursor: default;
}
.elske-video-overlay video {
    display: block;
    max-width: min(calc(100vw - 32px), 1120px);
    max-height: calc(100dvh - 80px);
    object-fit: contain;
}
.elske-video-overlay .overlay-inner {
    max-width: 100%;
    min-width: 0;
}
.elske-video-overlay .elske-video-close {
    position: absolute;
    top: max(12px, env(safe-area-inset-top));
    right: max(16px, env(safe-area-inset-right));
}
.elske-video-overlay .elske-video-close,
.elske-submit {
    display: grid;
    place-items: center;
    min-height: 44px;
    padding-inline: 16px;
    border: 0;
    border-radius: 0;
    background: #000;
    color: white;
    font: inherit;
    font-family: "Arial Black", Arial, sans-serif;
    font-weight: 900;
    cursor: pointer;
}
.elske-video-overlay :is(.overlay-prev-button, .overlay-next-button) { display: none; }


.elske-detail { position: relative; padding: 0; }
/* Let short slides scroll far enough to align the heading with the viewport. */
.elske-detail:has(.elske-project)::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 100dvh;
    pointer-events: none;
}
.elske-work-heading {
    padding: 29px var(--elske-inset) 10px;
    scroll-margin-top: 8px;
}
.elske-work-heading h1 {
    margin: 0;
    font: 20px/1.25 var(--elske-display);
    text-transform: uppercase;
}
.elske-work-heading h1 a { text-decoration: none; }
.elske-work-position {
    margin-inline-start: .45em;
    font-size: .7em;
    white-space: nowrap;
}
.elske-project {
    position: relative;
    background: #eee;
    padding: var(--elske-inset);
}
.elske-swiper:not(.swiper-initialized) > .swiper-wrapper > .swiper-slide:not([data-initial-slide]),
.elske-series-swiper:not(.swiper-initialized) > .swiper-wrapper > .swiper-slide:not([data-initial-slide]),
.elske-project [hidden] { display: none; }
.elske-project .elske-pager a { z-index: 2; }
.elske-project img, .elske-project iframe, .elske-project video {
    width: 100%;
    display: block;
    border: 0;
}
.elske-project img[data-work-cover], .elske-project video {
    max-height: calc(100vh - 150px);
    object-fit: contain;
}
.elske-project iframe {
    width: min(100%, calc((100vh - 150px) * 16 / 9));
    aspect-ratio: 16 / 9;
    margin-inline: auto;
}
.elske-project video { background: #000; }
.elske-play {
    position: absolute;
    left: 50%;
    top: 40%;
    translate: -50% -50%;
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border: 7px solid var(--elske-mint);
    border-radius: 50%;
    background: #000;
    color: var(--elske-mint);
}
.elske-play span {
    width: 30px;
    height: 34px;
    margin-left: 5px;
    background: currentColor;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.elske-play:hover { color: #000; background: var(--elske-mint); }
.elske-tile .elske-play { top: 50%; pointer-events: none; }
.elske-pager a {
    position: absolute;
    top: 40%;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    translate: 0 -50%;
    font: 14px/1 var(--elske-display);
    background: var(--elske-mint);
    text-decoration: none;
}
.elske-pager a:first-child {
    left: -30px;
    clip-path: polygon(23% 0, 100% 0, 100% 100%, 23% 100%, 0 50%);
}
.elske-pager a:last-child {
    right: -30px;
    clip-path: polygon(0 0, 77% 0, 100% 50%, 77% 100%, 0 100%);
}
.elske-pager a:last-child span { transform: scaleX(-1); }
.elske-pager a:hover { color: white; background: #000; }
.elske-series-swiper {
    aspect-ratio: 1;
    max-height: 72vh;
}
.elske-series-swiper .elske-work-media {
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    place-items: center;
    overflow: hidden;
}
.elske-series-swiper .elske-work-media img { height: 100%; }
.elske-series-swiper .elske-work-media:has(.elske-work-cover-crop) {
    container-type: size;
}
.elske-work-cover-crop {
    position: relative;
    overflow: hidden;
    width: min(100%, calc((100vh - 150px) * var(--photo-crop-ratio)));
    aspect-ratio: var(--photo-crop-ratio);
    margin-inline: auto;
}
.elske-series-swiper .elske-work-cover-crop {
    max-width: calc(100cqh * var(--photo-crop-ratio));
}
.elske-project .elske-work-cover-crop img[data-work-cover] {
    position: absolute;
    inset: 0 auto auto 0;
    height: auto;
    max-height: none;
}
.elske-series-swiper .elske-work-media video { max-height: min(100%, calc(100vh - 150px)); }
.elske-series-swiper .elske-work-media iframe {
    max-height: 100%;
    max-width: calc(72vh * 16 / 9);
}
.elske-media-pager {
    position: absolute;
    z-index: 2;
    inset-inline-end: 6px;
    top: 50%;
    translate: 0 -50%;
    display: grid;
    max-height: calc(100% - 12px);
    overflow-y: auto;
    border-radius: 12px;
    background: #0007;
}
.elske-media-pager a {
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
}
.elske-media-pager a span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: white;
}
.elske-media-pager a:is(:hover, [aria-current]) span { background: var(--elske-mint); }
.elske-media-pager a[aria-current] span { transform: scale(1.35); }
.elske-media-pager a:focus-visible { outline: 2px solid var(--elske-mint); outline-offset: -2px; }
.elske-project-list {
    margin-inline: var(--elske-inset);
    padding-block: 8px 18px;
    font-size: 10px;
    color: #666;
}
.elske-project-list.swiper-initialized { overflow: clip; }
.elske-project-list:not(.swiper-initialized) { overflow-x: auto; }
.elske-project-list:not(.swiper-initialized) .swiper-wrapper { gap: 16px; }
.elske-project-list a {
    flex: none;
    width: auto;
    max-width: min(250px, 75%);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
}
.elske-project-list a:hover, .elske-project-list a[aria-current] { color: #000; }

.elske-contact { padding: 0; }
.elske-panel { background: white; padding: var(--elske-inset); margin-bottom: 40px; }
.elske-panel:first-of-type { padding-top: 14px; }
.elske-panel h2 { margin: 0 0 6px; font-size: 15px; }
.elske-panel p { margin: 0 0 24px; }
.elske-panel p:last-child { margin-bottom: 0; }
.elske-panel p a { margin-left: 16px; text-decoration: none; }
.elske-contact-icon {
    width: 17px;
    height: 17px;
    vertical-align: middle;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.elske-panel a:hover { box-shadow: inset 0 -.35em var(--elske-highlight); }
.elske-panel form > h2 { margin-bottom: 12px; }
.elske-panel form label {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: start;
    margin-bottom: 10px;
}
.elske-panel form label span { padding-top: 8px; }
.elske-panel input:not([type=hidden]), .elske-panel textarea {
    width: 100%;
    border: 0;
    border-bottom: 2px solid #000;
    background: transparent;
    color: #000;
    font: inherit;
    padding: 5px 0;
}
.elske-panel textarea { min-height: 100px; }
.elske-submit { margin-left: auto; }
.elske-form-error { color: #851617; }
.elske-clients {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
}
.elske-clients img {
    display: block;
    width: 100%;
    height: 64px;
    object-fit: contain;
    filter: grayscale(1);
}
.elske-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
}

@media (max-width: 1000px) {
    .elske-shell { width: auto; inset-inline: 32px; }
}
@media (max-width: 766px) {
    body { font-size: 11px; line-height: 18px; }
    .elske-logo { top: -66px; font-size: 50px; }
    .elske-backdrop video { object-position: center; }
    .elske-menu { min-height: 21px; }
    .elske-menu a { font-size: 13.5px; translate: 0 -1px; }
    .elske-menu a:nth-child(2) { translate: -11px -1px; }
    .elske-content { margin-bottom: 24px; }
    .elske-detail:has(.elske-project)::after { display: none; }
    .elske-page .elske-overview { padding-top: 17px; padding-bottom: 24px; }
    .elske-online { padding-top: 12px; }
    .elske-grid, .elske-online .elske-grid { gap: 4px; }
    .elske-tile h2 { font-size: 8px; padding: 2px; }
    .elske-work-heading { padding-top: 24px; }
    .elske-work-heading h1 { font-size: 10px; }
    .elske-play { width: 42px; height: 42px; border-width: 4px; }
    .elske-play span { width: 17px; height: 18px; margin-left: 3px; }
    .elske-pager a { width: 30px; height: 30px; font-size: 11px; }
    .elske-pager a:first-child { left: -20px; }
    .elske-pager a:last-child { right: -20px; }
    .elske-media-pager { inset-inline-end: 3px; }
    .elske-instagram-link { margin-top: 14px; }
    .elske-panel:first-of-type { padding-top: 14px; }
    .elske-panel p a[href^="tel:"] { display: block; margin-left: 0; }
    .elske-panel form label { grid-template-columns: 1fr; gap: 6px; margin-bottom: 16px; }
    .elske-panel input:not([type=hidden]), .elske-panel textarea { padding-block: 6px 8px; }
    .elske-clients { gap: 6px; }
    .elske-clients img { height: 32px; }
}
@media (max-width: 374px) {
    .elske-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .elske-tile h2 { font-size: 7px; }
}
@media (max-width: 320px) {
    .elske-shell { inset-inline: 18px; }
}
