/* - BASE - */

body {
  transform: rotate(180deg);
  transition: transform 0.4s ease;
}

.hid {
    display: none !important;
}

a {
    transition: 0.16s;
}

a:hover {
    color: transparent;
    text-shadow: 0 0 5px white;
}

.wp-element-caption {
    margin: 5px 0px 0px 0px !important;
    padding: 0 !important;
    color: #838383;
    font-size: 15px;
}

.wp-element-caption a {
    color: white;
}

.page-id-4689 {
    background-color:#000;
}



/* - HEADER NAVBAR COLOR - */

:root,
body {
    --nav-bg: #f4f4f4;
    --nav-text: #808080;
    --nav-border: #2f2f2f;
    --nav-hover-shadow: #808080;
    --link-contrast: 1;
}

body.header-dark {
    --nav-bg: #131313;
    --nav-text: #9d9d9d;
    --nav-border: #2f2f2f;
    --nav-hover-shadow: #ffffff;
    --link-contrast: 2;
}

.nav-container a {
    pointer-events: auto;
    border: 1px solid var(--nav-border);
    background-color: var(--nav-bg);
    color: var(--nav-text);

    transition: background-color 0.2s ease, color 0.2s ease, text-shadow 0.2s ease;
}

.nav-container a:hover {
    color: transparent;
    text-shadow: 0 0 5px var(--nav-hover-shadow);
}

p a {
    filter: contrast(1);
}




/* - HEADER POSITION - */

#nav-bot {
    position: fixed;
    bottom: 0px;
    left: 0px;
    right: 0px;
    z-index: 100;
    pointer-events: none;
}

#nav-top {
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    z-index: 100;
    pointer-events: none;
}

#nav-bot a {
    pointer-events: auto;
}

#nav-top a {
    pointer-events: auto;
}




/* - OVERLAY - */

.overlay-container {
    position: relative;
    height: 100vh;
    width: 100%;
}

.close-overlay-button {
    touch-action: manipulation;
    cursor: pointer;
}





/* - INDEX POPUPS - */

.hero-container {
    position: relative;
    height: 100vh;
    width: 100%;
}

/* - close button popup - */
.close-button-popup {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 10;
    touch-action: manipulation;
    cursor: pointer;
}

.close-button-popup::before {
    content: '';
    position: absolute;
    top: -10px;
    bottom: -10px;
    left: -10px;
    right: -10px;
    min-width: 44px;
    min-height: 44px;
}

.shop-popup {
    position: absolute;
    top: 231px;
    left: 387px;
    width: 340px;
    height: 245px;
}

.instagram-popup {
    position: absolute;
    top: 595px;
    right: 76px;
    width: 180px;
}

.collapsecore-popup {
    position: absolute;
    top: 366px;
    left: 112px;
    width: 320px;
}




/* - SLIDESHOW - */

.slideshow-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    position: relative;
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
    user-select: none;
}

.slide,
.cursor-zone {
    grid-area: 1 / 1;
}

/* Slide Styling */
.slide {
    margin: 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Image behavior inside container padding */
.slide img {
    pointer-events: none;
    /* disable-zoom */
}

.wp-element-caption {
    margin: 5px 0px 0px 0px !important;
    padding: 0 !important;
    color: #838383;
    font-size: 13px;
    text-align: center;
}

.wp-element-caption a {
    color: #fff;
}

/* Cursor Zones - Slices left/right half over the image area */
.cursor-zone {
    position: relative;
    z-index: 10;
    height: 95%;
}

.zone-left {
    width: 50%;
    justify-self: start;
    cursor: w-resize;
}

.zone-right {
    width: 50%;
    justify-self: end;
    cursor: e-resize;
}




/* - POPUP-OVERLAY - */

.hidden {
    display: none !important;
}

.popup-overlay:hover {
    z-index: 10;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.popup {
    max-width: 800px;
}

.open-popup-button {
    position: fixed;
    left: 50%;
    bottom: 50px;
    transform: translate(-50%);
    z-index: 1;
}

.open-popup-button,
.close-button {
    cursor: pointer;
    user-select: none;
}




/* - SWITCH VIEW - */

.view {
    /* Inactive State*/
    position: absolute;
    width: 100%;
    filter: blur(10px);
    opacity: 0.5;
    padding: 0 10px;
    pointer-events: none;
    z-index: 0;
    max-height: 100%;
    overflow: hidden;
    transition: filter 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
}

/* Active State */
.view.active {
    filter: blur(0px);
    pointer-events: auto;
    opacity: 1;
    z-index: 1;
    overflow: auto;
    max-height: none;
}

/* Simple Button Styling */
.switch-view {
    cursor: pointer;
    user-select: none;
}




/* - ARCHIVE - */
.flex-container {
    display: flex;
    flex-wrap: wrap;
    padding: 35px 65px;
    width: 100%;
    gap: 100px 15px;
}

.block-item {
    aspect-ratio: 1 / 1 !important;
    max-width: 261px;
    margin: 0 !important;
    padding: 0 !important;
}

.block-item,
.block-item .wp-block-image,
.block-item a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
}

.block-item img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

.exhibition {
    border: solid 1px #808080;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.exhibition p {
    padding: 0 30px;
}

.work {}

.edition {}




/* - ABOUT CARD - */

.about-card,
.about-card-statement {
    position: absolute;
    width: 720px;
    height: 350px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.about-img {
    width: 350px;
}

.column-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.flip-button {
    position: absolute;
    bottom: 0;
    left: 0;
    filter: blur(5px);
    cursor: pointer;
    user-select: none;
    animation: tabacco 2s;
}

@keyframes tabacco {
    0% {z-index:10;}
    100% {z-index:-1;}
}

@media (max-width:850px) {

    .about-card,
    .about-card-statement {
        width: 80%;
        height: 80%;
    }

    .column-wrapper {
        flex-direction: column-reverse;
    }

    .about-img {
        width: 100%;
    }
}