@font-face {
    font-family: 'Cinzel';
    src: url('./Fonts/Ancient/Cinzel-VariableFont_wght.ttf')
}
@font-face {
    font-family: 'JetBrains';
    src: url('./Fonts/JetBrainsMono/JetBrainsMono-Medium.ttf');
}

* {
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
}

:root, html {
    font-size: 16px;
}

body {
    min-height: 100vh;
    height: 100%;

    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    align-items: center;
}

header {
    align-self: stretch;
    padding: calc(5px + 1vh);
    position: sticky;
    top: 0;

    display: flex;
    justify-content: space-between;
    align-items: center;
    
    background-color: white;
    box-shadow: 0px 5px 4px rgba(0,0,0,0.1);
    z-index: 1000;
} header:hover {
    box-shadow: 0px 5px 4px rgba(0,0,0,0.2);
    transition: 1s;
} header .brand {
    align-self: flex-start;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
} header .brand img {
    width: 50px;
} header .brand h4 {
    display: flex;
    gap: 5px;

    font-family: 'Cinzel';
    letter-spacing: 1px;
} header .brand h4 div {
    display: flex;
    gap: 2px;
} header .brand h4 #light {
    font-weight: 100;
} header nav {
    position: relative;

    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-end;
    align-items: center;
} header nav .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0px;
} header nav button {
    align-self: flex-end;
    padding: 8px;

    display: flex;
    justify-content: center;
    align-items: center;

    background-color: transparent;
    border: none;
    cursor: context-menu;
    font-size: 20px;
} header nav button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
} header nav .menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 180px;
    padding: 10px;

    display: grid;
    gap: 6px;

    background: white;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 160ms ease, transform 160ms ease;
} header nav .menu-panel a {
    font-family: 'JetBrains';
    text-decoration: none;
} header nav .menu-panel a:hover, header nav .menu-panel a:focus-visible {
    background: rgba(0,0,0,0.06);
    outline: none;
}
.menu.open .menu-panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

main {
    align-self: stretch;
    flex: 1 0 auto;
    /* padding: calc(10px + 5vw); */
    padding: 7vh 5vw;

    display: flex;
    flex-flow: column nowrap;
    justify-content: space-around;
    align-items: flex-start;
} main h1 {
    font-size: calc(2rem + 2vw);
} main * {
    font-family: 'JetBrains';
} main .displayWork {
    align-self: stretch;
    flex: 1 0 auto;

    display: flex;
    justify-content: center;
    align-items: center;
} 
.project-card {
    display: inline-block;

    border-style: none;
    cursor: pointer;
    background-color: inherit;
    color: inherit;
    text-decoration: none;
} .project-meta {
    margin-top: clamp(1vh, 20px, 2vh);
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
} .project-title {
    font-size: calc(0.75rem + 1vw);
} .project-subtitle {
    font-size: calc(0.55rem + 0.75vw);
} .project-media {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
} .project-media img {
    position: relative;
    width: 350px;
    height: auto;

    display: block;
    
    transition: opacity 180ms ease;
    z-index: 1;
} .project-reveal {
    position: absolute;
    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 2.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 180ms ease;
    transition-delay: 40ms;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.12);
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.35);
    z-index: 2;
}

.project-card:hover .project-media img,
.project-card:focus-visible .project-media img {
  opacity: 0.72; /* very subtle dim */
}

.project-card:hover .project-reveal,
.project-card:focus-visible .project-reveal {
  opacity: 1;
}



/* ===== Dark Gallery Modal ===== */

body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

/* .modal_backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
} */

.modal_panel {
  align-self: stretch;
  flex: 1 0 auto;
  padding: 4vh 6vw 4vh 6vw;
  position: relative;
  width: 100%; /*min(980px, calc(100vw - 2rem)); */
  max-height: 100vh;
  /* min-height: 100vh; calc(100vh - 2rem); */
  overflow: auto;

  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;

  background: rgba(0, 0, 0, 0.90); /* #0b0c10; near-black  */
  color: #e9e9ee;

  border: 1px solid rgba(255,255,255,0.08);
  /* border-radius: 18px; */

  box-shadow: 0 25px 80px rgba(0,0,0,0.6);

  transform: translateY(10px);
  transition: transform 180ms ease;
}

.modal[aria-hidden="false"] .modal_panel {
  transform: translateY(0);
}

.modal_close {
  align-self: stretch;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;

  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  color: #fff;

  cursor: pointer;
}

.modal_close:hover {
  background: rgba(255,255,255,0.10);
}

.modal_content_wrapper {
  align-self: stretch;
  flex: 1 0 auto;
}

.modal_content {
  /* padding: 22px; */

  display: grid;
  grid-template-rows: auto 8fr auto;
  grid-template-columns: 1fr;
  height: 100%;
}

.modal_header {
  padding-right: 54px; /* room for close button */
  margin-bottom: 14px;
  position: static;

  display: flex;
  flex-flow: column nowrap;
  justify-content: flex-start;
  align-items: flex-start;

  border-bottom: 1px solid gray;
  background-color: inherit;
  pointer-events: none;
}

.modal_title {
  font-size: 1.4rem;
  margin: 0 0 6px;
}

.modal_subtitle {
  margin: 0;
  opacity: 0.75;
}

.modal_hero {
  margin: 16px 0 18px;

  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
  /* border-radius: 14px; */
  overflow: hidden;
  /* border: 1px solid rgba(255,255,255,0.08); */
} .modal_hero small {
  margin-top: 10px;

  opacity: 0.7;
  color: gray;
  font-style: italic;
}

.modal_img {
  display: block;
  width: 90%;
  height: auto;
  border-radius: 5px;
}

.modal_grid {
  display: grid;
  grid-template-columns: 2fr 5fr;
  gap: 10px;

  height: calc(100vh - 220px);
}

.modal_projectDetails {
    padding-right: 24px;     /* space away from center */
    padding-left: 6px;       /* slight breathing room */
    max-width: 52ch;
    padding-bottom: 50px;

    border-right: 1px solid gray;
    font-size: 1.15rem;
    overflow-y: auto;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
    mask-image: linear-gradient(
    to bottom,
    black 90%,
    transparent
  );
}

.modal_projectDetails::-webkit-scrollbar {
  width: 6px;
}

.modal_projectDetails::-webkit-scrollbar-track {
  background: transparent;
}

.modal_projectDetails::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 28px;
}

.modal_projectDetails::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.35);
}


.modal_section h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  opacity: 0.9;
}

.modal_list {
  margin: 0;
  padding-left: 18px;
  opacity: 0.85;
}

.modal_footer {
  display: flex;
  gap: 14px;
  /* margin-top: 18px; */
  padding-top: 16px;
  border-top: 1px solid gray; /* rgba(255,255,255,0.08) */
}

.modal_link {
  color: #fff;
  text-decoration: none;
  padding-bottom: 2px;
}

.modal_link:hover {
  text-decoration-color: rgba(255,255,255,0.65);
  text-decoration: underline;
  transition: 0.25s;
}

.modal_section--editorial p:first-child {
  font-size: 1.1rem;
  opacity: 0.95;
}

.modal_section--editorial p {
  margin-bottom: 1.1rem;
  line-height: 1.55;
  opacity: 0.85;
}

.modal_section--editorial h3 {
  margin-top: 1.8rem;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  /* text-transform: uppercase; */
  opacity: 0.75;
}

.modal_section--editorial ul {
  padding-left: 1.2rem;
  margin-top: 0.6rem;
}

.modal_section--editorial li {
  margin-bottom: 0.65rem;
  line-height: 1.45;
  opacity: 0.85;
}

@media (max-width: 720px) {
  .modal_grid {
    grid-template-columns: 1fr;
  }
  .project-media img {
    width: 200px;
    height: auto;
  }
}

