/* 45-årsfesten */
.fest-topp { min-height: min(calc(100vh - 77px), 860px); display: flex; align-items: end; background: #1a1614 center/cover; position: relative; isolation: isolate; }
.fest-topp::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(12,12,13,.15) 35%, rgba(12,12,13,.6) 72%, #0c0c0d); }
.fest-topp > div { width: 100%; max-width: var(--maks); margin: 0 auto; padding: 2rem 16px 3rem; } .fest-topp .tilbake a { color: #fff; } .fest-topp time { font: 600 1.25rem var(--tittel); color: #fff; } .fest-topp h1 { font-size: clamp(2.7rem, 6.6vw, 6.6rem); line-height: 1.08; margin: .15em 0 0; max-width: 11em; text-wrap: balance; } .fest-topp h1 span { white-space: nowrap; }
.fest-takk { max-width: 1000px; margin: 0 auto; padding: 3rem 16px 4rem; } .fest blockquote { margin: 0; } .fest-takk blockquote { font: 600 clamp(1.6rem, 3.4vw, 2.7rem)/1.22 var(--tittel); color: #fff; } .fest-takk p { color: #c9c9cd; margin: 1.2rem 0 0; }
.fest-tekst { max-width: 760px; margin: 0 auto; padding: 2.5rem 16px; font-size: 1.1rem; color: #d6d6d8; } .fest-tekst h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.fest figure { margin: 0; } .fest figure img { width: 100%; height: 100%; object-fit: cover; } .fest-par { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-width: 1700px; margin: 0 auto; padding: 0 6px; } .fest-par img { aspect-ratio: 3/2; } .fest-en img { max-height: 92vh; min-height: 300px; } .fest figure a { display: block; height: 100%; }
.fest-film { max-width: 1000px; display: grid; grid-template-columns: 340px 1fr; gap: 3.5rem; align-items: center; padding-top: 5rem; padding-bottom: 4rem; } .fest-film > a { position: relative; display: block; } .fest-film img { width: 100%; height: auto; } .fest-film a > span { position: absolute; inset: 0; margin: auto; width: 92px; height: 92px; border-radius: 50%; background: var(--rod); transition: transform .2s; } .fest-film a > span::after { content: ""; position: absolute; left: 37px; top: 28px; border: solid transparent; border-width: 18px 0 18px 28px; border-left-color: #fff; } .fest-film > a:hover span { transform: scale(1.1); } .fest-film blockquote { font-size: 1.25rem; line-height: 1.5; margin-bottom: 1rem; color: #fff; }
.fest-galleri { padding: 2rem 6px 5rem; max-width: 1900px; margin: 0 auto; } .fest-galleri h2 { text-align: center; font-size: clamp(2rem, 4vw, 3rem); } .fest-galleri > div { display: flex; flex-wrap: wrap; gap: 6px; } .fest-galleri a { flex: calc(var(--r) * 100) 1 calc(var(--r) * 330px); overflow: hidden; } .fest-galleri i { flex: 900 1 0; } .fest-galleri img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: var(--r); transition: filter .2s; } .fest-galleri a:hover img { filter: brightness(1.12); }
.fest-vis { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #000; } .fest-vis::backdrop { background: #000; } .fest-vis img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-select: none; touch-action: pan-y; } .fest-vis button { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.6); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; } .fest-vis [data-l] { top: 14px; right: 14px; } .fest-vis [data-d] { top: calc(50% - 25px); left: 14px; } .fest-vis [data-d="1"] { left: auto; right: 14px; } .fest-vis p { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); margin: 0; padding: .2em .8em; background: rgba(0,0,0,.6); color: #fff; font-size: .9rem; }
.fest :focus-visible, .fest-vis :focus-visible { outline: 3px solid #ff5468; outline-offset: 2px; }
@media (max-width: 820px) { .fest-topp { min-height: 82vh; } .fest-par { grid-template-columns: 1fr; } .fest-en img { aspect-ratio: 4/5; object-position: 55% center; } .fest-film { grid-template-columns: 1fr; gap: 1.6rem; padding-top: 3rem; } .fest-film > a { max-width: 340px; } .fest-galleri a { flex-basis: calc(var(--r) * 200px); } }
