/* Add padding below the header */
#header-placeholder {
  padding-bottom: 24px;
}

/* The Drive Home Section */
.the-drive-home {
    padding: 40px 20px;
  }
  .the-drive-home .container{
    background-color: #d9f2d0;
    border-radius: 15px;
  }

  .girly-cabin {
    padding: 40px 20px;
  }

.keeper-of-the-forest {
    padding: 40px 20px;
}

  .girly-cabin .container{
    background-color: #faecf8;
    justify-content: center; /* Center the content horizontally */
    align-items: center;
    padding: 32px 32px;
    border-radius: 15px;
  }

.keeper-of-the-forest .container{
    background-color: #e6f7f2;
    justify-content: center;
    align-items: center;
    padding: 32px 32px;
    border-radius: 15px;
}

  .girly-cabin-item {
    max-width: 50%; /* Make the image container larger */
  }

.keeperoftheforest-item {
    max-width: 50%;
}

  .personal-projects {
    padding: 40px 20px;
  }

  .personal-projects .container{
    background-color: #f9e9d3;
    border-radius: 15px;
  }

  .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap:20px;
  }

  .left-container {
    display: flex;
    flex-wrap: wrap;
    gap:20px;
  }
  
  .image-container {
    flex: 1;
    max-width: 30%;
    margin-right: 20px;
    margin-left: 10px;
  }
  
  .project-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }
  
  .article-container {
    flex: 1;
    max-width: 75%;
  }
  
  .article-container h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
  }
  
  .article-container p {
    font-size: 1.125rem;
    color: #555;
    line-height: 1.6;
  }
  
  @media (max-width: 768px) {
    .slide-showcontainer {
      flex-direction: column;
      align-items: center;
    }
  
    .image-container,
    .article-container {
      max-width: 100%;
      margin-right: 0;
    }
  
    .article-container h2 {
      font-size: 1.5rem;
    }
  
    .article-container p {
      font-size: 1rem;
    }
  }
  
 /* Image Gallery Section */
/* Image Gallery Section */
.image-gallery {
  padding: 40px 20px;
  background-color: #f9f9f9;
}

.image-gallery-container { /* Renamed to avoid conflict */
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.image-item {
  flex: 1;
  max-width: 23%; /* 4 items with some spacing */
  margin: 10px;
  text-align: center;
  position: relative;
}


.image {
  flex: 1;
  max-width: 23%; /* 4 items with some spacing */
  margin: 10px;
  text-align: center;
  position: relative;
}

.wide-image-item {
  flex: 1;
  max-width: 100%; /* 4 items with some spacing */
  margin: 10px;
  text-align: center;
  position: relative;
}

.gallery-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

/* Keeper of the Forest main image: allow full vertical expansion, no cropping */
.keeperoftheforest-main {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}
}
.two-container {
  display: flex;
  justify-content: space-between;
  padding: 10px; /* Add padding around the images */
  gap: 20px; /* Adjust the gap between images */
}

.half-image {
  width: 48%; /* Ensure the images take up almost half of the container width */
  box-sizing: border-box; /* Include padding in width calculation */
  height: auto;
  border-radius: 8px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  /* No transition for zoom */
  cursor: pointer;
  object-fit: cover; /* Ensures the images cover the space */
}

img {
  vertical-align: top; /* Ensures the image stays aligned to the top */
}

img:hover {
  margin: 0; /* Ensure no margin shifts occur */
  padding: 0; /* Ensure no padding shifts occur */
}


.slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none; /* Hidden until hover */
  justify-content: center; /* Keeps horizontal centering */
  align-items: flex-start; /* Align content to the top */
  overflow: hidden;
 
}

.slideshow-image.active {
  opacity: 1;
  display: block;
}


.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.fullscreen.active {
  display: flex;
}

body.no-scroll {
  overflow: hidden;
}

/* Ensure all modal images use fullscreen style */
.modal-content,
.fullscreen img {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
  display: block;
  margin: auto;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 700px) {
}
.spinner {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  background: transparent;
}
.spinner-dot {
  width: 16px;
  height: 16px;
  background: #A47DAB;
  border-radius: 50%;
  animation: bounce 0.8s infinite alternate;
}
@keyframes bounce {
  to { transform: translateY(-18px); }
}
.slideshow-image {
  display: none;
  width: 100%;
  height: auto;
}

/* Hover Effect */
.image-item:hover .slideshow {
  display: flex; /* Show slideshow on hover */
}

.gallery-image:hover {
  transform: scale(1.05);
  border-radius: 8px;
}

@media (max-width: 768px) {
  .image-gallery-container {
    flex-direction: column;
    align-items: center;
  }

  /* The Drive Home: stack images vertically on mobile */
  .the-drive-home .container {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 20px !important;
  }
  .the-drive-home .image,
  .the-drive-home .image-item {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 0 20px 0 !important;
  }

  /* Padding above the lineart image on mobile */
  .the-drive-home .image:first-child {
    padding-top: 24px;
  }

  .gallery-image {
    width: 100%;
  }
  /* Stack Set 6 and Set 7 vertically on mobile */
  .the-drive-home .left-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    width: 100% !important;
    align-items: center !important;
  }
  .the-drive-home .left-container .image-item,
  .the-drive-home .left-container .fill-item {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 0 20px 0 !important;
  }
}

.personal-projects {
  text-align: center;
}

.two-container {
  display: flex;
  justify-content: space-between; /* Space between the two figures */
  align-items: center; /* Vertically aligns content */
  gap: 20px; /* Adds spacing between the two containers */
}

.image-container {
  flex: 1; /* Ensures each figure takes up equal space */
  max-width: 50%; /* Prevents figures from growing too large */
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* align-items: center; */
  overflow: hidden; /* Clips overflowing content */
  margin: 0; /* Removes default figure margin */
}

.image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* Ensures the image scales proportionally */
}

.image-container figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: #333; /* Optional styling */
  text-align: center;
}

.watercolour {
  padding: 40px 20px;
}

.watercolour .container{
  background-color: #dceaf7;
  border-radius: 15px;
}

.gouache {
  padding: 40px 20px;
}

.gouache .container{
  background-color: #A47DAB;
  border-radius: 15px;
}

.fill-item{
  width: 45%;
  align-items: center;
  text-align: center;
  justify-content: center;
  justify-items: center;
}

/* Force the girly cabin image to fill the container */
.girly-cabin .container {
  justify-content: center;
  align-items: center;
  padding: 32px 32px;
}

.keeper-of-the-forest .container {
  justify-content: center;
  align-items: center;
  padding: 32px 32px;
}
.girly-cabin .image-item.girly-cabin-item {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0;
}

.keeper-of-the-forest .image-item.keeperoftheforest-item {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0;
}
.girly-cabin .gallery-image {
  width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

.keeper-of-the-forest .gallery-image {
  width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}
.video-responsive {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  padding-top: 30px;
  height: 0;
  overflow: hidden;
}
.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}
@media (max-width: 768px) {
  .video-responsive {
    padding-bottom: 70%; /* taller for mobile */
  }
  .video-responsive iframe {
    border-radius: 0;
  }
}

/* The Drive Home horizontal scroll fix */
.drive-home-scroll {
    display: flex;
    flex-direction: row;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
}
.drive-home-scroll img {
    max-height: 220px;
    border-radius: 12px;
    flex-shrink: 0;
}