html, body {
    margin: 0;
    padding: 0;
}

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

.art-introduction,
#art-content {
    width: calc(100% - 48px);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    font-family: "Neue Haas Grotesk Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.art-introduction {
    width: 60%;
    max-width: none;
    padding-top: 78px;
    margin-bottom: 78px;
    color: #202020;
}
.art-introduction h1 {
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1;
}
.art-introduction p {
    max-width: 500px;
    margin: 0;
    color: #777;
    font-size: 17px;
    line-height: 1.5;
}
.art-instruction {
    display: block;
    display: none;
}

#art-content {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
    padding: 0 0 40px;
    text-align: center;
    font-family: "Neue Haas Grotesk Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

#art-content img {
    width: 100%;
    height: auto;
    display: block;
}
.artworks {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    max-width: 100%;
    margin: 0 auto var(--artwork-gap, 124px);
    cursor: zoom-in;
}
.art-image-wrap {
    position: relative;
    width: 100%;
}
.filter-dark {
    position: absolute;
    cursor: pointer;
    width: 100%;
    height: 100%;
    background-color: transparent;
    transition: background-color 0.5s;
}
.filter-dark:hover {
    background-color: rgba(0, 0, 0, 0.1);
}
.description {
    display: block;
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0;
    margin: 0;
}
.description-structured {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 26px 0 0;
}
.art-title {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #222;
    margin-bottom: 3px;
}
.art-medium {
    font-size: 13px;
    font-weight: 400;
    color: #777;
}
.art-year { color: #888; font-size: 13px; font-weight: 400; }
.expand-label {
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 10px 14px;
    background: #333;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1;
    opacity: 0;
    transform: translateY(3px);
    transition: opacity 200ms ease, transform 200ms ease, background-color 200ms ease;
}

.expand-label .arrow-icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.12em;
}
.expand-label:hover { background: #444; }
.expand-label__mobile { display: none; }
.artworks:hover .expand-label,
.artworks:focus-visible .expand-label {
    opacity: 1;
    transform: translateY(0);
}
.spacer {
    display: none;
}

/* Reusable editorial image widths */
.artwork--large { width: min(100%, 1120px); }
.artwork--medium { width: min(100%, 920px); }
.artwork--small { width: min(100%, 700px); }


/* hidden Slideshow */

#slideshow {
    height:100%;
    width: 100%;
    background-color: #202020;
    position: fixed;
    visibility: hidden;
    opacity: 0;
    z-index: 1;
    transition: visibility 0.5s ease-in-out, opacity 0.5s linear;
}

#slideshow .fullscreen-close {
	position: absolute;
	top: 18px;
	right: 24px;
	z-index: 3;
	border: 0;
	padding: 4px 12px 8px;
	color: #fff;
	background: rgba(0, 0, 0, 0.45);
	cursor: pointer;
	font-size: 38px;
	line-height: 1;
}

#slideshow .fullscreen-close:hover {
	background: rgba(255, 255, 255, 0.18);
}

.fullscreen-open #nav-button,
.fullscreen-open #responsive-nav {
	visibility: hidden;
	pointer-events: none;
}

#number-text {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: fixed;
  bottom: 0;
  color: #fff;
  left: 50%;
  transform: translateX(-50%);
}

.prev, .next {
  cursor: pointer;
  padding: 18px;
  color: #fff;
  font-weight: 400;
  font-size: 28px;
  transition: 0.6s ease;
  border-radius: 3px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%); 
  border: none;
  background-color: rgba(0, 0, 0, 0.28);
  z-index: 3;
}

.next {
    right: 0;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

#slide {
    position: absolute;
    max-height: 100%;
    max-width: 90%;
    background-color: #000;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    margin: auto;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.4s linear, opacity 0.4s linear;
}

#dokumentika-video {
    position: absolute;
    width: 50%;
    height: 70%;
    max-height: 100%;
    max-width: 90%;
    background-color: #000;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    margin: auto;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.4s linear, opacity 0.4s linear;
}

.artworks, img, .artworks:focus, img:focus{
    border:0 none !important;
    user-select: none; /* Standard syntax */
}

.artworks:focus-visible {
    outline: 1px solid #777;
    outline-offset: 6px;
}

/* Responsive */
@media screen and (max-width: 900px) {
    .art-introduction {
        padding-top: 64px;
        margin-bottom: 64px;
    }
    .artworks { --artwork-gap: 100px; }
    #dokumentika-video {
        width: 80%;
        height: 60%;
    }
    .description {
        font-size: 13px;
    }
    .prev:hover, .next:hover {
        background-color: transparent;
    }
}

@media screen and (max-width: 650px) {
    .art-introduction,
    #art-content { width: calc(100% - 40px); }
    .art-introduction { padding-top: 48px; margin-bottom: 52px; }
    .art-introduction h1 { font-size: 19px; }
    .art-introduction p { font-size: 16px; }

    #art-content .artworks {
        width: 100% !important;
        margin-bottom: 76px;
        --artwork-gap: 76px;
    }
    .art-title {
        font-size: 13px;
    }
    .art-medium,
    .art-year { font-size: 13px; }
    .expand-label { opacity: 1; transform: none; right: 12px; bottom: 12px; padding: 10px 12px; font-size: 12px; }
    .expand-label__desktop { display: none; }
    .expand-label__mobile { display: inline; }
    #slide {
        max-width: 80%;
    }
    #dokumentika-video {
        width: 80%;
        height: 30%;
    }

}

@media (prefers-reduced-motion: reduce) {
    .expand-label { transition: none; }
}
