@import url('https://fonts.googleapis.com/css?family=Cormorant+Garamond&display=swap');



/* Hides pink div in book/ Product page */
/* 2025-09-18 */
body.postid-4800 .preOrderToday{
    display: none !important;
}
body.postid-4800 p.price {
    display: none !important;
}

/* White backgroud behind page content */
body.postid-4800 .title-nav_blog {
    background-color: white;
		padding: 2em;
		padding-left: 2em;
		padding-right: 2em;
		margin-bottom: 1em;
}

.single-projects .site {
  background-color: #fff;
}

.carousel-vertical-pair {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.carousel-vertical-pair img {
    width: 43%;
    height: auto;
    max-width: 100%;          /* never exceed its half-container width */
}

#carousel {
  display: flex;
  flex-direction: column;
  /*gap: 20px;*/
  max-width: 100%;
  box-sizing: border-box;
  height: auto !important;
  max-height: none !important;
	align-items: center;
		
	/* Apply space between each element: images & image pairs when being displayed as a column */
	row-gap: 11vh;
	padding: 0 2vw;
	padding-bottom: 9vh;
}

#carousel {
    width: 1200px;
    margin: 0 auto;
}

#carousel .carousel-image.horizontal {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: #fff;
  transition: box-shadow 0.2s;
}

#carousel img {
    max-height: none !important;
}

/* #carousel .carousel-image:hover { } */

/* ==========================
   Popup Carousel Styles
========================== */

#carousel-popup {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.65);
  display: none; /* hidden initially */
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
  cursor: default;
  display: flex;
  flex-direction: column;
}

/* Popup overlay & content unchanged from before */

.carousel-popup-content {
  position: relative;
  max-width: 90vw;
  /* max-height: 80vh; */
  margin: auto;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Image styling unchanged */

#carousel-current-image {
    width: auto;       /* width adjusts to keep aspect ratio */
    max-width: 100%;   /* prevent overflowing horizontally */
    display: block;
    margin: 0 auto;    /* center horizontally */
    object-fit: contain; /* scale the image properly */
    transition: opacity 0.6s ease-in-out;
    background: #fff;
    opacity: 1;
    max-height: none !important;
}

/* Footer bar for buttons and counter */

#carousel-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 0.75em 1.5em;
  width: 100%;
  box-sizing: border-box;
  border-top: 1px solid #ddd;
}

/* Left and right button groups */

#btn-group-left,
#btn-group-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Counter center */

#carousel-counter {
  font-family: Arial, sans-serif;
  font-size: 1rem;
  color: #333;
  text-align: center;
  flex-grow: 1;
}

/* Style buttons */

#carousel-prev,
#carousel-next,
#carousel-close {
  background: rgba(255,255,255,0.9);
  border: none;
  color: #333;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.3em 0.5em;
  border-radius: 4px;
  transition: background-color 0.3s;
  user-select: none;
  outline: none;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Remove default pressed button styles */
  box-shadow: none;
  transform: none;
  background-color: rgba(255,255,255,0.9); /* Keep same bg during click */
  outline: none;
  filter: none;
}

#carousel-close {
  font-size: 2.5rem;
  font-weight: bold;
  color: #000;
  background: transparent;
}

#carousel-close:hover {
  color: #ff0000;
}

#carousel-prev:hover,
#carousel-next:hover {
  background: rgba(255, 255, 255, 1);
}

/* Book page - START */

/* Show book title */
.postid-4800 .work_title p{
    display:block ! important;
		font-size: 3rem ! important;
}

/* Set Product image & product summary the same height. Added responsive design below. START */
.woocommerce div.product {
    display: flex;
    align-items: stretch;
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
    width: 48%;
    float: none;
}

.woocommerce div.product div.summary {
    clear: none;
    height: auto !important; /* override any fixed height */
}

/* Desktop, greater than half size and greater than mobile */
@media (min-width: 1351px) {

		/* Handle half screen size, and full screen Size on Desktops */
		.woocommerce-product-gallery .woocommerce-product-gallery--with-images .woocommerce-product-gallery--columns-4.images {
				min-width: 40%;
				height: auto;
		}

		.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
				width: 100%;
				height: 100%;
		}

		.woocommerce div.product div.images .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image {
				position: relative;
				width: 100%;
				height: 100%;
		}

		.woocommerce div.product div.images .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image .wp-post-image {
				object-fit: cover;
				width: 100%;
				height: 100%;
		}

   .single-product #product-4800 {
     padding: 0 32px 32px;
   }
}

/* Layout adjustments for tablets and smaller desktops */
@media (max-width: 1350px) {

  /*
    Center the main product container (".single-product #product-4800") horizontally
    by applying flexbox to its parent element ".single-product".
  */
  .single-product {
    display: flex;
    justify-content: center;
  }
  
  /*
    Inside ".single-product", the container "#product-4800" wraps the product image,
    description, and summary. We change its layout to column and center content,
    so on narrow screens the product image and summary stack vertically with padding.
  */
  .single-product #product-4800 {
    flex-direction: column;
    align-items: center;
  }

  /*
    Ensure both images and summary sections fill full width on these screen sizes.
  */
  .woocommerce div.product div.images,
  .woocommerce div.product div.summary {
    width: 100% !important;
  }

  /*
    (Optional) Uncomment to force product gallery images to 100% width here if needed.
  */
  /* .woocommerce-product-gallery.woocommerce-product-gallery--with-images.woocommerce-product-gallery--columns-4.images {
      width: 100% !important;
  } */
}

/* Mobile layout tweaks */
@media (max-width: 600px) {

  /*
    Change "#product-4800" container to block display to stack content vertically
    and set product images to fill the screen width for a better mobile experience.
  */
  .single-product #product-4800 {
    display: block !important;
  }

  .woocommerce-product-gallery.woocommerce-product-gallery--with-images.woocommerce-product-gallery--columns-4.images {
    width: 100% !important;
  }
}

/* Book page - End of Book page responsive CSS - END */

/* Ovverride Woocommerce "Add to Cart" color */
.woocommerce div.product form.cart .button, .button {
		color: #b22789 !important;
}

/* Removes padding and margin for Book Order section on screens wider than 880px. on Home page, 2025-09-18 C.M. */
@media only screen and (min-width: 881px) {
    .site-content .jm-book-order {
        padding: 0 !important;
    }
}

/* Desktop */
@media (min-width: 601px) {

  #carousel-current-image {
    height: 79vh !important;
  }
}

/* Mobile */
@media (max-width: 881px) {
  body.postid-4800 .title-nav_blog {
      padding-left: 1em;
      padding-right: 1em;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  #carousel {
		row-gap: 8vh; /* middle value */
		padding: 0 2vw;
		padding-bottom: 6vh;
  }
}

/* Mobile */
@media (max-width: 600px) {
  #carousel {
		row-gap: 6vh;
		padding: 0 8vw;
		padding-bottom: 6vh;
  }
		
  #carousel .carousel-image {
    max-height: 60vh;
  }

  #carousel-current-image {
      height: 100%;
  }
  .carousel-vertical-pair {
    flex-direction: column; 
  }

  .carousel-vertical-pair .carousel-image {
    width: 100%;
  }
		
	#carousel .carousel-image.horizontal {
			
	}
	
	/* Apply space between image pairs when on mobile and being displayed as a column */
	.carousel-vertical-pair {
		  row-gap: 6vh;
	}
}