/* =========================================================
   Julia Tarantino — Photography Portfolio
   A clean, self-contained rebuild of the original Webflow site.
   ========================================================= */

/* ---- Font ---------------------------------------------- */
@font-face {
  font-family: "PPMondwest";
  src: url("../fonts/PPMondwest-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background-color: #fff;
  color: #000;
  font-family: "PPMondwest", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: #000;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* =========================================================
   HOME / "Enter" gateway page
   ========================================================= */
.gateway {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100%;
}

.gateway__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 19px;
}

.gateway__name {
  font-size: 3rem;
}

.gateway__enter {
  font-size: 1.2rem;
  margin-bottom: -16px; /* matches original baseline nudge */
  transition: opacity 0.2s ease;
}

.gateway__enter:hover {
  opacity: 0.55;
}

/* =========================================================
   PORTFOLIO
   ========================================================= */
.portfolio {
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

/* Fixed chrome (header + contact link) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 20px;
  pointer-events: none;
}

.site-header__name {
  font-size: 1.2rem;
}

/* Bottom control bar: Previous · Contact · Next, all on one baseline */
.controls {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  padding: 0 25px 25px;
}

.controls__contact {
  justify-self: center;
}

/* Slider stage */
.slider {
  position: relative;
  height: 100vh;
  width: 100vw;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease;
}

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

/* Image group inside a slide */
.stage {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  height: 100vh;
  width: 100%;
  padding: 0 90px;
}

/* A single photo + caption */
.cell {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-width: 0;
}

.cell img {
  height: 75vh;
  width: auto;
  max-width: 100%;
  object-fit: cover;
}

/* Single-image slides show the full frame (no crop) */
.stage--single .cell img {
  object-fit: contain;
  max-width: 90vw;
}

/* Invisible spacer keeps a lone photo on one side of a 2-up slide */
.cell--spacer {
  visibility: hidden;
}

.caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: 5px;
  font-size: 1rem;
}

/* Prev / Next — share the control bar's baseline */
.nav-arrow,
.controls__contact {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  color: #000;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.nav-arrow--prev {
  justify-self: start;
  text-align: left;
}

.nav-arrow--next {
  justify-self: end;
  text-align: right;
}

/* =========================================================
   CONTACT / ABOUT
   ========================================================= */
.about {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  width: 100%;
  min-height: 100vh;
}

.about__inner {
  width: 48rem;
  max-width: 100%;
  margin-bottom: 100px;
  padding: 0 1rem;
}

.about__header {
  font-size: 2rem;
  margin: 0 0 0.25rem;
}

.about__body {
  max-width: 600px;
  padding-bottom: 40px;
  font-size: 1rem;
}

.about__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-weight: 700;
}

.about__row a {
  transition: opacity 0.2s ease;
}

.about__row a:hover {
  opacity: 0.55;
}

.about__home {
  display: inline-block;
  margin-top: 40px;
  font-weight: 700;
  transition: opacity 0.2s ease;
}

.about__home:hover {
  opacity: 0.55;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media screen and (max-width: 991px) {
  .stage {
    gap: 10px;
    padding: 0 40px;
  }
  .cell img {
    height: 40vh;
    max-width: 45vw;
  }
  .stage--single .cell img {
    max-width: 90vw;
  }
  .about__inner {
    width: 40rem;
  }
}

@media screen and (max-width: 767px) {
  .cell img {
    height: 30vh;
  }
  .caption {
    font-size: 0.75rem;
  }
  .about__inner {
    width: 100%;
    padding: 19px;
  }
  .about__header {
    font-size: 1.5rem;
  }
  .about__body {
    max-width: none;
  }
}

@media screen and (max-width: 479px) {
  .gateway__name {
    font-size: 2.5rem;
  }
}
