html, body {
  background: rgb(240, 240, 240) !important;
  margin: 0;
  padding: 0;
}

:root {
  --main-font-color:  #f4f4f4;
  --animation-transition: all 4s ease;
}

* {
  padding: 0;
  margin: 0;
  font-family: "Times New Roman", Times, serif;
  font-size: 15px;
}

a{
  color:  #575757;
}

.informationBtn {
  transition: var(--animation-transition);
  transform-origin: top left;              
}

.informationBtn a{
  text-decoration: none;
  color: var(--main-font-color);
}

.tree { 
  list-style: none;
  margin: 0; 
  padding: 0;
  width: 100%;
  margin-bottom: 3rem;
  color: var(--main-font-color);
}

details { margin: .25rem 0}
summary { cursor: pointer; display: inline-flex; align-items: center; gap: .25rem; }
summary::-webkit-details-marker { display: none; } 

.via { opacity: .8; }
.indent { padding-left: 1rem;}

.caret {
  display: inline-block;
  transition: transform 0.4s ease;
}

details[open] > summary > .caret {
  transform: rotate(90deg);
}

/* BOTTOM BAR - Move to TOP LEFT */
.bottom{
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: auto;
  z-index: 999;
  color: var(--main-font-color);
  mix-blend-mode: difference;
  padding-top: 7px;
  padding-left: 7px;
}

.bottom div{
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
} 

/* Timer stays at bottom right */
#timer {
  position: fixed;
  top: auto;
  bottom: 0;
  right: 0;
  padding-right: 7px;
  padding-bottom: 9px;
  z-index: 9999;
  color: var(--main-font-color);
  mix-blend-mode: difference;
}

.swiperContainer{
  width: 100vw;
  height: 100dvh;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  background: transparent !important;
  position: relative; 
}

.swiper {
  width: 100vw;         
  height: 100dvh;         
  margin: 0;
  padding: 0;
  background: transparent !important;
  cursor: default;  /* Normal arrow cursor */
}

.swiper-slide {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  font-size: 20px;
  font-weight: bold;
  margin: 0;
  padding: 0;
  background: transparent !important;
}

.swiper-slide img {
  object-fit: contain !important; 
  max-height: 60vh;        /* Looser constraint - can be taller */
  max-width: 75dvw;         /* Looser constraint - can be wider */
  width: auto !important;  /* Natural width */
  height: auto !important; /* Natural height */
  margin: 0 auto !important;
}

.video-wrap {
  position: relative;
  width: 80%;
  height: 75%;
  overflow: hidden;
}

.video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Hide mute button by default */
.mute-btn {
  display: none;
  position: absolute;
  bottom: calc(var(--padTop, 0px) + 8px);
  right: calc(var(--padRight, 0px) + 8px);
  z-index: 2;
  color: var(--main-font-color);
  background-color: transparent;
  mix-blend-mode: difference;
  border: 0;
  padding: 6px 8px;
  line-height: 1;
  cursor: pointer;
}

/* Only show mute button on videos marked with audio */
.video-wrap[data-has-audio="true"] .mute-btn {
  display: block;
}

/* CAPTION - MOVED TO RIGHT COLUMN (50% width) */
.caption{
  position: absolute;
  background-color: transparent;  
  top: 0;
  right: 0;
  width: 50vw;
  max-width: none;
  padding-top: 7px;
  padding-right: 7px;
  z-index: 9999;  /* Increased to stay on top */
  color: var(--main-font-color);
  mix-blend-mode: difference;
  text-align: left;
  pointer-events: none;
}

.caption a {
  color:#575757;
  pointer-events: auto;
}

#slide-counter,
#slide-caption {
  display: inline;
}

/* INFO CONTAINER - LEFT COLUMN (50% width) */
.infoContainer{
  position: fixed;
  top: 0;
  left: 0;
  width: 50vw;
  height: 100dvh;
  padding-top: 7px;
  padding-left: 7px;
  padding-right: 7px;
  padding-bottom: 5vh;
  overflow-y: auto;
  color: #808080;
  background-color: transparent;
  mix-blend-mode: difference;
  z-index: 998;
}

/* "back to selected works" at top of left column */
.infoContainer .bottom {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0;
  padding-bottom: 1.5rem;
  margin-bottom: 0;
  display: block;
}

/* Keep timer visible on info page */
.infoContainer ~ #timer {
  display: block !important;
  visibility: visible !important;
}

.infoContainer li{
  list-style: none;
  background-color: transparent;
  mix-blend-mode: difference;
}

.infoContainer details ul{
  margin-top: 0.3rem;
  margin-bottom: 0.4rem;
  transition: transform 4s ease, padding-bottom 4s ease;
  background-color: transparent;
  mix-blend-mode: difference;
}

.listRotate{
  transform-origin: top left;
  line-height: 1.6;
  transition: var(--animation-transition);
  padding-bottom: 0;
  transform: rotate(-3deg);
  padding-top: 0rem;
  user-select: none;             
  -webkit-user-select: none;    
  -ms-user-select: none;
  -webkit-touch-callout: none;   
  touch-action: manipulation;  
}

.experience p,
.legal p {
  transform-origin: top left;
  line-height: 1.6;
  transition: var(--animation-transition);
  padding-bottom: 0;
  transform: rotate(-3deg);
  user-select: none;             
  -webkit-user-select: none;    
  -ms-user-select: none;
  -webkit-touch-callout: none;   
  touch-action: manipulation;  
  cursor: pointer; 
  -webkit-tap-highlight-color: transparent;
}

.experience p:active,
.legal p:active {
  transform: rotate(3deg);
  padding-bottom: 1.6rem;
}

.active {
  padding-bottom: 1.6rem;   
  transform: rotate(3deg);         
}

.bio{
  margin-top: 1.5rem;
  color: var(--main-font-color);
}

.rotateOnHover:hover{
  transform: rotate(-3deg); 
}

.rotateOnHover{
  transition: var(--animation-transition);
  transform-origin: left bottom;
  user-select: none;             
  -webkit-user-select: none;    
  -ms-user-select: none;
  -webkit-touch-callout: none;   
  touch-action: manipulation;     
}

.rotateOnHover.rotated {
  transform: rotate(-3deg);
  padding-top: 0.8rem;
}

.mainSummary,
.subSummary {
  display: block;              
  will-change: transform;       
  transform: rotate(0deg); 
  transform-origin: top left;
  transition: transform 4s ease; 
}

.infoContainer details[open] > .mainSummary {
  transform: rotate(-3deg);
}

.infoContainer .subCategorie details[open] > .subSummary {
  transform: rotate(-3deg);
}

@media (hover: hover) {
  .infoContainer details .mainSummary:hover { transform: rotate(-3deg); }
  .subSummary:hover { transform: rotate(-3deg); }
  .experience p:hover,
  .legal p:hover{ 
    padding-bottom: 1rem;
    transform: rotate(3deg);
  }
  .informationBtn:hover { transform: rotate(-3deg); }
}

.infoContainer summary { cursor: pointer; }

.contact{
  padding-top: 1rem;
  padding-bottom: 1rem;
  color: var(--main-font-color);
}

.contact a{
  color: var(--main-font-color);
}

.contact h2 {
  font-weight: 100;
}

.experience p:first-child {
  margin-top: 0rem;
}

.experience p {
  margin-top: 1rem;
}

.legal p {
  margin-top: 1rem;
}

/* MOBILE - Back to single column */
@media screen and (max-width: 1024px) {
  .swiper{
    width: 95dvw;
    height: 90dvh;
  }

  .swiper-slide img {
    max-height: 75dvh !important;
    max-width: 90vw !important;
  }

  .video-wrap {
    max-width: 90vw;
    max-height: 75dvh;
  }

  /* Caption back to top-left, full width on mobile */
  .caption{
    position: absolute;
    width: 96vw;
    left: 0;
    right: auto;
    top: 0;
    text-align: left;
    padding-left: 7px;
    padding-top: 7px;
    padding-right: 7px;
    pointer-events: none;
  }
  
  .caption a {
    pointer-events: auto;
  }

  /* Bottom bar back to bottom on mobile HOME PAGE */
  body:not(.info-page) .bottom{
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: auto;
    width: 100vw;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 0;
    padding-left: 7px;
    padding-right: 7px;
    padding-bottom: 9px;
    z-index: 99;
    pointer-events: none;
  }
  
  .bottom a {
    pointer-events: auto;
  }

  /* Timer stays at bottom right - always fixed */
  #timer {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    right: 0 !important;
    padding-right: 7px !important;
    padding-bottom: 9px !important;
  }

  /* Info container back to full width on mobile */
  .infoContainer {
    position: static;
    width: 100vw;
    height: auto;
    left: auto;
    right: auto;
    padding-left: 7px;
    padding-right: 7px;
    padding-top: 7px;
    overflow-y: visible;
  }

  /* Remove desktop spacing on mobile */
  .infoContainer .bio {
    margin-top: 0;
  }

  /* "back to selected works" at bottom on mobile info page */
  .infoContainer .bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    top: auto;
    width: auto;
    padding-left: 7px;
    padding-bottom: 9px;
    padding-right: 0;
    margin-bottom: 0;
    z-index: 999;
  }
}

@media screen and (max-width: 820px) {
 
}

@media screen and (max-width: 430px) {
 
}