@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500&display=block');

/* =========================================================
   MATT ROBERTSON — PHOTOGRAPHY PORTFOLIO
   Main stylesheet
   ========================================================= */

/* -------------------------
   Basic reset
   ------------------------- */

* {
  box-sizing: border-box;
}

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

body {
  background: #ffffff;
  color: #111111;
  font-family: Arial, Helvetica, sans-serif;
}


/* -------------------------
   Header / navigation
   ------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;

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

  padding: 30px 38px;

  background: transparent;
}

.site-title,
.nav-link,
.work-dropdown a {
  color: #111111;
  text-decoration: none;
}

.site-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  font-size: 13px;
  letter-spacing: 0.08em;
}


/* -------------------------
   Work dropdown
   ------------------------- */

.work-menu {
  position: relative;
  padding-bottom: 18px;
  margin-bottom: -18px;
}

.work-dropdown {
  position: absolute;
  top: calc(100% - 1px);
  left: -18px;

  min-width: 160px;
  padding: 12px 0;

  display: flex;
  flex-direction: column;

  /* Transparent dropdown background */
  background: transparent;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);

  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease;
}

.work-dropdown a {
  padding: 8px 18px;

  color: #111111;
  font-size: 12px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.work-dropdown a:hover {
  opacity: 0.55;
}

/* Keep the dropdown open while moving the cursor
   from Work to one of the gallery choices. */

.work-menu:hover .work-dropdown,
.work-menu:focus-within .work-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}


/* -------------------------
   Home page dropdown
   ------------------------- */

/* White dropdown text over the home photograph */

.home .work-dropdown a {
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}


/* -------------------------
   Home page
   ------------------------- */

.home .site-header {
  color: #ffffff;
}

.home .site-title,
.home .nav-link {
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.hero {
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero img {
  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
}


/* -------------------------
   Gallery pages
   ------------------------- */

.gallery {
  width: 100%;
  min-height: 100vh;
  padding: 110px 38px 45px;
}

.viewer {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 90px;
  align-items: center;

  gap: 20px;

  /* Change this value to make the featured image
     area larger or smaller. */

  height: 60vh;
  transform: translateY(60px);
}

.featured {
  width: 100%;
  height: 100%;
  margin: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.featured img {
  display: block;

  width: 1200px;
  height: 800px;

  object-fit: contain;

  cursor: pointer;
}


.gallery-arrow {
  border: 0;
  padding: 20px;

  background: transparent;
  color: #111111;

  font-size: 25px;
  line-height: 1;

  cursor: pointer;
}

.gallery-arrow:hover {
  opacity: 0.55;
}



/* -------------------------
   Mobile layout
   ------------------------- */

@media (max-width: 700px) {

  .site-header {
    padding: 22px 20px;
  }

  .site-title {
    font-size: 16px;
  }

  .main-nav {
    gap: 16px;
  }

  .nav-link {
    font-size: 11px;
  }

  .gallery {
    padding: 90px 18px 30px;
  }

  .viewer {
    grid-template-columns: 45px minmax(0, 1fr) 45px;
    gap: 5px;
    height: 58vh;
  }

  .gallery-arrow {
    padding: 10px;
    font-size: 20px;
  }

  .featured figcaption {
    margin-top: 12px;
    font-size: 11px;
  }

  .work-dropdown {
    left: auto;
    right: 0;
  }
}


/* -------------------------
   About / Contact pages
   ------------------------- */

.content-page .site-header {
  background: #ffffff;
}

.content {
  max-width: 760px;
  margin: 0 auto;
  padding: 150px 38px 80px;
}

.content h1 {
  margin: 0 0 35px;

  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.content p {
  max-width: 620px;
  margin: 0;

  font-size: 15px;
  line-height: 1.8;
}

@media (max-width: 700px) {

  .content {
    padding: 120px 20px 60px;
  }

  .content h1 {
    font-size: 24px;
  }

  .content p {
    font-size: 14px;
  }
}

/* -------------------------
   Inner pages
   ------------------------- */

/* Gallery, About and Contact pages use black navigation. */

.gallery-page .site-title,
.gallery-page .nav-link,
.content-page .site-title,
.content-page .nav-link {
  color: #111111;
  text-shadow: none;
}

.about img {
    width: 60px !important;
    height: 80px !important;
    object-fit: cover;
    display: block;
    margin: 0 auto 20px;
}

.about-text {
    max-width: 500px;
}
@media (max-width: 600px) {
}

/* Contact form */
.contact-page {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 30px 80px;
    box-sizing: border-box;
}

.contact-inner {
    width: 100%;
    max-width: 760px;
}

.contact-copy {
    margin-bottom: 45px;
}

.contact-copy h1 {
    margin: 0 0 18px;
    font-size: 32px;
    font-weight: 400;
}

.contact-copy p {
    margin: 0;
    max-width: 560px;
    line-height: 1.7;
}

.contact-form {
    width: 100%;
}

.contact-form .form-row {
    margin-bottom: 28px;
}

.contact-form label {
    display: block;
    margin-bottom: 9px;
    font-size: 13px;
    letter-spacing: 0.04em;
}

.contact-form input,
.contact-form textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid #bdbdbd;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    outline: none;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-bottom-color: #111;
}

.contact-form button {
    margin-top: 8px;
    padding: 12px 22px;
    border: 1px solid #111;
    background: #111;
    color: #fff;
    font: inherit;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.contact-form button:hover {
    opacity: 0.75;
}

@media (max-width: 600px) {
    .contact-page {
        padding: 110px 22px 60px;
    }

    .contact-copy {
        margin-bottom: 35px;
    }
}


/* Thank-you page */
.thank-you {
    text-align: center;
}

.thank-you h1 {
    margin-bottom: 18px;
}

.thank-you p {
    margin: 0 auto 30px;
    max-width: 520px;
    line-height: 1.7;
}

.thank-you-link {
    display: inline-block;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 4px;
}

/* Instagram navigation */
.main-nav .instagram-link {
  margin-left: 0;
}

/* Prevent scrolling on Contact page */
body:has(.contact-page) {
    overflow: hidden;
}