@font-face {
font-family: 'UniversLTStd';
font-style: normal;
font-weight: 400;
src: url('../fonts/UniversLTStd-Light.woff') ; /* IE9 Compat Modes */
}

@font-face {
font-family: 'UniversLTStd';
font-style: italic;
font-weight: 400;
src: url('../fonts/UniversLTStd-LightObl.woff') ; /* IE9 Compat Modes */
}

@font-face {
font-family: 'UniversLTStd';
font-style: normal;
font-weight: 500;
src: url('../fonts/UniversLTStd-Bold.woff') ; /* IE9 Compat Modes */
}

@font-face {
font-family: 'UniversLTStd';
font-style: italic;
font-weight: 500;
src: url('../fonts/UniversLTStd-BoldObl.woff') ; /* IE9 Compat Modes */
}

@font-face {
font-family: 'Areal';
font-style: normal;
font-weight: 400;
src: url('../fonts/ABCAreal-Regular.woff2') ; /* IE9 Compat Modes */
}

@font-face {
font-family: 'Areal';
font-style: italic;
font-weight: 400;
src: url('../fonts/ABCAreal-RegularItalic.woff2') ; /* IE9 Compat Modes */
}

@font-face {
font-family: 'Areal';
font-style: normal;
font-weight: 500;
src: url('../fonts/ABCAreal-Medium.woff2') ; /* IE9 Compat Modes */
}

@font-face {
font-family: 'Areal';
font-style: italic;
font-weight: 500;
src: url('../fonts/ABCAreal-MediumItalic.woff2') ; /* IE9 Compat Modes */
}

:root {
  --text-size-desktop: 1.1rem;
  --text-size-mobile: 2.2rem;
}

body {
  font-family: 'Areal', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: var(--text-size-desktop);
  line-height: 1.25;
  height: 100%;
  width: 100%;
  overflow: hidden;       /* prevent scrolling */
}

h1 {
  text-decoration: none !important;
  font-weight: 500;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  background-color: white;
  /* height auto → content determines size */
  z-index: 10;
  padding-left: 0.1rem;
}

main {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100vw;

  /* remove fixed 100vh */
  height: auto;           /* main will adapt to viewport minus nav */
  z-index: 0;
  overflow: hidden;
}

.main-background {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* below main-wrapper so it cannot block scrolling */
}

.main-wrapper {
  width: 100%;
  height: calc(100vh - 0px);
  overflow-y: auto;
  overflow-x: hidden;
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  transform-origin: bottom;
  transition: transform 0.35s ease;
}

.main-wrapper #default video {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: fill;
}

.main-wrapper .main-content:not(#default) {
  position: static;
}

.work-details {
  padding-top: 1lh;
}

.work-details h2,
.work-details p {
  margin: 0;
}

.work-title {
  text-decoration: underline;
  text-decoration-thickness: 0.05rem;
}

.work-details img {
  position: static;
  display: block;
  margin-left: 0;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
}

.work-details:has(> img + img) {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  column-gap: 0.5rem;
}

.work-details:has(> img + img) > :not(img) {
  flex: 0 0 100%;
}

.work-details:has(> img + img) img {
  width: auto;
  max-width: calc(50% - 0.25rem);
}

.acc-btn {
  opacity: 1 !important;
  transform: none !important;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  line-height: inherit;
}

#main .acc-btn {
  width: fit-content;
}

#main .acc-btn.active:not(:hover) {
  text-decoration: none;
}

.work-item {
}

.acc-panel {
  overflow: hidden;
  max-height: 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none; /* ignore clicks when closed */
}

.acc-panel.open {
  max-height: 500px;
  visibility: visible;
  opacity: 1;
  pointer-events: auto; /* allow clicks when open */
}

.acc-btn:hover, .acc-btn.active, item:hover, item:active {
  text-decoration: underline;
  text-decoration-thickness: 0.05rem;
}

.work-content {
  display: none;
}

.work-content.active {
  display: block;
}

/* large devices */
@media (min-width: 992px) and (orientation: landscape) {
.work-explanation{
  font-size: calc(var(--text-size-desktop) * 0.75);
  line-height: calc(var(--text-size-desktop) * 1.25);
  padding-left: 0.1rem;
}
}



/* small devices */
@media (max-width: 991px)  and (orientation: portrait) {
  .work-details img {
    width: 100%;
    max-width: 100%;
    max-height: none;
  }

    body {
    font-size: var(--text-size-mobile);
  }

}
