/* ==========================================
   FINN & JESSE - MAIN STYLESHEET
========================================== */

:root {
  --cream: #fff9f2;
  --peach: #ffb88c;
  --coral: #f28e72;
  --brown: #49382f;
  --muted: #89786e;
  --lavender: #e9e1f8;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--brown);
  font-family: "Trebuchet MS", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================
   HEADER AND NAVIGATION
========================================== */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 7%;
  background: var(--white);
  box-shadow: 0 3px 15px #49382f0b;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  white-space: nowrap;
}

nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

nav a {
  padding: 10px 13px;
  border-radius: 25px;
  font-size: .9rem;
  font-weight: 700;
  transition: .2s;
}

nav a:hover,
nav a.active {
  background: var(--peach);
  color: var(--brown);
}

/* ==========================================
   HOMEPAGE HERO
========================================== */

.hero {
  min-height: 470px;
  padding: 90px 9%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: linear-gradient(120deg, #ffe5d2, #f5e9fc);
}

.hero-content {
  flex: 1 1 0;
  min-width: 0;
  max-width: 650px;
}

.eyebrow {
  color: var(--coral);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: 2px;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1.05;
  margin: 18px 0;
  letter-spacing: -2px;
}

h1 span {
  color: var(--coral);
}

.hero p,
.page-description {
  max-width: 580px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

.hero-photo {
  flex: 1 1 0;
  min-width: 0;
  max-width: 600px;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 8px 25px #49382f15;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* ==========================================
   BUTTONS
========================================== */

.button {
  display: inline-block;
  border: none;
  border-radius: 30px;
  background: var(--coral);
  color: white;
  padding: 15px 25px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: .2s;
  font-family: inherit;
}

.button:hover {
  transform: translateY(-3px);
  background: #e4775b;
}

.button-light {
  background: white;
  color: var(--brown);
}

/* ==========================================
   HOMEPAGE CONTENT
========================================== */

.intro,
.gallery-page,
.about-page {
  text-align: center;
  padding: 75px 7%;
  max-width: 1200px;
  margin: auto;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.feature-card {
  padding: 40px 25px;
  border-radius: 25px;
  transition: .2s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.finn-card {
  background: #ffe5d2;
}

.jesse-card {
  background: var(--lavender);
}

.feature-icon {
  font-size: 3rem;
}

.feature-card h3 {
  font-size: 1.8rem;
  margin: 12px;
}

.text-link {
  font-weight: 800;
  color: var(--coral);
}

/* ==========================================
   PHOTO GALLERIES
========================================== */

.gallery-page h1,
.about-page h1 {
  font-size: clamp(2.6rem, 6vw, 4rem);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 40px 0;
  text-align: left;
}

.photo-grid.single-photo {
  grid-template-columns: minmax(0, 800px);
  justify-content: center;
}

.photo-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 25px #49382f12;
  animation: appear .4s ease;
}

.photo-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  transition: transform .3s;
  cursor: pointer;
}

.photo-card:hover img {
  transform: scale(1.035);
}

.photo-caption {
  padding: 15px;
  color: var(--muted);
  font-size: .9rem;
}

.ai-page .photo-card img {
  height: auto;
  max-height: 650px;
  object-fit: contain;
  background: #f1e9e1;
}

.small-note {
  color: var(--muted);
  font-size: .9rem;
  margin-top: 20px;
}

/* ==========================================
   ABOUT PAGE
========================================== */

.about-card {
  max-width: 700px;
  margin: 40px auto;
  padding: 45px;
  background: white;
  border-radius: 25px;
  box-shadow: 0 8px 30px #49382f10;
  line-height: 1.8;
  font-size: 1.05rem;
}

.about-icon {
  font-size: 4rem;
}

/* ==========================================
   FOOTER
========================================== */

footer {
  background: var(--brown);
  color: white;
  padding: 28px;
  text-align: center;
  font-size: .9rem;
}

/* ==========================================
   PHOTO LIGHTBOX
========================================== */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(25, 20, 18, 0.94);

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

  padding: 60px 75px;
}

.lightbox.active {
  display: flex;
  animation: lightboxFade .2s ease;
}

.lightbox img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 50px #0008;
}

/* ==========================================
   LIGHTBOX BUTTONS
========================================== */

.lightbox button {
  position: absolute;

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

  border: none;
  color: white;
  background: rgba(255,255,255,.13);

  cursor: pointer;
  border-radius: 50%;

  width: 48px;
  height: 48px;

  font-size: 26px;
  transition: .2s;

  z-index: 10001;
}

.lightbox button:hover {
  background: var(--coral);
  transform: scale(1.1);
}

/* CLOSE BUTTON */

.lightbox-close {
  top: 20px;
  right: 25px;
}

/* PREVIOUS BUTTON */

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* NEXT BUTTON */

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* SLIDESHOW BUTTON */

.slideshow-button {
  bottom: 55px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px !important;
}

.slideshow-button:hover {
  transform: translateX(-50%) scale(1.1) !important;
}

/* PHOTO COUNTER */

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  color: white;
  font-size: 14px;
}

/* ==========================================
   ANIMATIONS
========================================== */

@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lightboxFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ==========================================
   MOBILE RESPONSIVENESS
========================================== */

@media (max-width: 750px) {

  .header {
    justify-content: center;
    text-align: center;
  }

  nav {
    justify-content: center;
  }

  nav a {
    font-size: .82rem;
    padding: 9px 10px;
  }

  .hero {
    padding: 65px 7%;
    text-align: center;
    flex-direction: column;
  }

  .hero-content {
    flex: none;
    width: 100%;
  }

  .hero-photo {
    flex: none;
    width: 100%;
    margin-top: 10px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .photo-card img {
    height: 300px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .about-card {
    padding: 25px;
  }
}

@media (max-width: 600px) {

  .lightbox {
    padding: 60px 48px;
  }

  .lightbox img {
    max-height: 75vh;
  }

  .lightbox button {
    width: 40px;
    height: 40px;
    font-size: 21px;
  }

  .lightbox-prev {
    left: 5px;
  }

  .lightbox-next {
    right: 5px;
  }

  .slideshow-button {
    bottom: 55px;
  }
}


/* ==========================================
   FEATURED AI PHOTO PAGE
========================================== */

.featured-section {
  max-width: 950px;
  margin: 40px auto 80px;
  text-align: center;
}

.featured-section h2,
.ai-collection h2 {
  margin-bottom: 10px;
}

.featured-photo-card {
  background: white;
  padding: 12px;
  border-radius: 22px;
  box-shadow: 0 10px 35px #49382f18;
  margin: 25px auto;
  overflow: hidden;
}

.featured-photo-card img {
  width: 100%;
  max-height: 600px;
  object-fit: contain;
  display: block;
  border-radius: 14px;
  cursor: pointer;
}

.ai-collection {
  margin: 70px auto 30px;
  padding-top: 45px;
  border-top: 2px solid #f0dfd2;
}

#ai-gallery {
  margin-top: 35px;
}

#ai-gallery .photo-card img {
  height: 230px;
  object-fit: cover;
}

@media (max-width: 750px) {

  .featured-photo-card {
    padding: 7px;
  }

  .featured-photo-card img {
    max-height: 450px;
  }

  #ai-gallery .photo-card img {
    height: 280px;
  }

}

/* ==========================================
   ABOUT PAGE - ADDITIONAL SECTIONS
========================================== */

.about-section {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 55px auto;
  text-align: left;
  max-width: 1000px;
}

.about-section.reverse {
  flex-direction: row-reverse;
}

.about-section img {
  width: 45%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 8px 25px #49382f15;
}

.about-section div {
  flex: 1;
}

.about-section h2,
.about-extra h2 {
  color: var(--brown);
  margin-top: 10px;
}

.about-section p,
.about-extra p,
.about-closing p {
  color: var(--muted);
  line-height: 1.8;
}

.about-date {
  color: var(--coral) !important;
  font-weight: 800;
}

.about-extra {
  margin: 80px auto;
  max-width: 1000px;
}

.about-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 30px 0;
}

.about-photo-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 18px;
}

.family-photo {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 22px;
  margin-top: 25px;
}

.favorites-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 35px;
}

.favorite-card {
  background: white;
  padding: 25px 15px;
  border-radius: 20px;
  font-size: 2rem;
  box-shadow: 0 5px 20px #49382f10;
}

.favorite-card h3 {
  font-size: 1.15rem;
  margin: 12px 0 5px;
}

.favorite-card p {
  font-size: .9rem;
  margin: 0;
}

.about-closing {
  background: linear-gradient(120deg, #ffe5d2, #f5e9fc);
  padding: 45px;
  border-radius: 25px;
  margin: 70px auto 30px;
  max-width: 900px;
}

.about-closing h3 {
  color: var(--coral);
  margin-top: 25px;
}

@media (max-width: 750px) {
  .about-section,
  .about-section.reverse {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .about-section img {
    width: 100%;
    max-height: 350px;
  }

  .about-photo-grid {
    grid-template-columns: 1fr;
  }

  .about-photo-grid img {
    height: 250px;
  }

  .favorites-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-closing {
    padding: 25px;
  }
}
/* ==========================================
   NEWS FEATURE SECTION
========================================== */

/* ==========================================
   NEWS FEATURE SECTION
========================================== */

.news-intro-card {

    display:flex;
    align-items:center;
    gap:40px;

    max-width:1000px;
    margin:40px auto 70px;

    padding:35px;

    background:white;

    border-radius:25px;

    box-shadow:0 8px 30px #49382f10;

    text-align:left;
}


.news-feature-image {
    width:50%;
    max-height:420px;
    object-fit:cover;
    border-radius:22px;
    box-shadow:0 8px 25px #49382f15;
}


.news-intro-content {

    flex:1;

}


.news-intro-content h2 {

    margin-top:10px;

}


@media (max-width:750px){

    .news-intro-card {

        flex-direction:column;

        text-align:center;

        padding:25px;

    }


    .news-feature-image {
        width:100%;
        max-height:350px;
        object-fit:cover;
        border-radius:22px;
        box-shadow:0 8px 25px #49382f15;
    }

}

