/*-- -------------------------- -->
<---           Hero             -->
<--- -------------------------- -*/
/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #hero-81 {
    /* Centers button */
    text-align: center;
    /* padding must leave extra space for navigation bar */
    padding: clamp(7rem, 15.5vw, 13rem) 1rem 0;
    position: relative;
    z-index: 1;
    /* Prevents white rectangle pseudos from overlapping the sections below */
    overflow: hidden;
  }

  #hero-81 .cs-background {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -2;
  }
  #hero-81 .cs-background:before {
    /* Overlay */
    content: '';
    width: 100%;
    height: 100%;
    background: #000;
    opacity: .7;
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    z-index: 1;
    /* prevents the cursor from interacting with it */
    pointer-events: none;
  }

  #hero-81 .cs-container {
    width: 100%;
    max-width: 67.5rem;
    margin: auto;
  }
  #hero-81 .cs-title {
    /* 39px - 61px */
    font-size: var(--headerFontSize);
    font-weight: 700;
    line-height: 1.1em;
    text-align: center;
    max-width: 51.8125rem;
    /* 16px - 24px */
    margin: 0 auto clamp(1rem, 4vw, 0rem);
    color: var(--primary);
    position: relative;
  }

  #hero-81 .cs-text {
    /* 16px - 25px */
    font-size: clamp(1rem, 1.95vw, 1.5625rem);
    line-height: 1.5em;
    text-align: center;
    width: 100%;
    /* 464px - 800px */
    max-width: clamp(29rem, 60vw, 50rem);
    margin: 0 auto;
    /* 40px - 48px */
/*     margin-bottom: clamp(2.5rem, 4vw, 3rem); */
/*     margin-bottom: clamp(1.5rem, 2.5vw, 2rem); */
    color: var(--primary);
  }
}
/* Desktop - 1300px (To make image background parallax) */
@media only screen and (min-width: 64rem) {
/* was 81.25rem */
  #hero-81 {
/*     background: url("https://csimg.nyc3.digitaloceanspaces.com/Hero/kitchen.jpg"); */
    padding: clamp(6rem, 11vw, 8rem) 1rem 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* makes the parallax effect */
    background-attachment: fixed;
  }
  #hero-81 .cs-background img {
    display: none;
  }
}
/* Dark Mode */
@media only screen and (min-width: 0rem) {
  body.dark-mode #hero-81:before,
  body.dark-mode #hero-81:after {
    background: var(--dark);
  }
  body.dark-mode #hero-81 .cs-background:before {
    opacity: .85;
  }
}

/*-- -------------------------- -->
<---          Book Displays          -->
<--- -------------------------- -*/
/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  .RPsbs-580 .cs-container,
  .RPsbsr-580 .cs-container {
    width: 100%;
    max-width: 50rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 48px - 64px */
    gap: clamp(1rem, 1.6vw, 1.2rem);
    padding-top: 1rem;
  }
    .RPsbs-580 .cs-title,
    .RPsbsr-580 .cs-title {
    font-size: var(--headerFontSize);
/*     font-size: 2rem; */
    line-height: 1.5em;
/*     text-transform: uppercase; */
    text-align: center;
    margin: 0 auto 0.5rem;
    color: var(--primary);
  }
  
    .RPsbs-580 .cs-title.smaller-title,
    .RPsbsr-580 .cs-title.smaller-title {
    	font-size: 1.1em;
    	line-height: 1.2em;
    	margin-top: -10px;
    	margin-bottom: 14px;
	}
	.RPsbs-580 .cs-topper,
	.RPsbsr-580 .cs-topper {
/*     color: var(--secondary); */
    text-align: center;
    margin: 0 auto .3rem;
    font-size: 1em;
  }
  .RPsbs-580 .cs-content,
  .RPsbsr-580 .cs-content {
    /* JG replaced left aligned to center*/
    text-align: center;
    width: 100%;
    max-width: 32.625rem;
    /* moved section padding to the .cs-content so we can have the cs-picture be full width on mobile without the padding preventing it from doing so */
    padding: var(--sectionPadding);
    padding-top: 0;
    /* prevents padding from affecting width and height */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    /* centers content horizontally, set to flex-start to left align */
    align-items: flex-start;

  }
  .RPsbs-580 .cs-text,
  .RPsbsr-580 .cs-text {
    /* Override. */
    margin-bottom: 1rem;
    font-size: 1.2rem;
    line-height: 1.2em;
  }
  .RPsbs-580 .cs-text:last-of-type,
  .RPsbsr-580 .cs-text:last-of-type {
    margin-bottom: 1.8rem;
  }
  .RPsbs-580 .cs-picture {
	margin-top: clamp(1rem, 2.4vw, 1.75rem);
    display: block;
    position: relative;
    /* Was 100%. JG changed to fixed pixel size to insure exactly correct book size */
    width: 225px;
    height: 233px;
  }
  .RPsbsr-580 .cs-picture {
	margin-top: clamp(0.5rem, 1.2vw, 1rem);
    display: block;
    position: relative;
    /* Was 100%. JG changed to fixed pixel size to insure exactly correct book size */
    width: 225px;
    height: 345px;
  }
  .RPsbs-580 .cs-picture img,
  .RPsbsr-580 .cs-picture img {
    position: relative;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
  .RPsbs-580 .cs-button-solid,
  .RPsbsr-580 .cs-button-solid {
    margin: 0 auto;
    display: block;
  }
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  .RPsbs-580,
  .RPsbsr-580 {
    padding: var(--sectionPadding);
  }
  .RPsbs-580 .cs-container,
  .RPsbsr-580 .cs-container {
    flex-direction: row;
    justify-content: flex-start;
    /* 60px - 128px */
    gap: clamp(1.25rem, 3.4vw, 2.7rem);
    padding-top: 0;
  }
  .RPsbs-580 .cs-content,
  .RPsbsr-580 .cs-content {
    width: 57%;
    /* reset the padding, add the section padding back to the section container */
    padding: 0;
  }
  .RPsbs-580 .cs-picture {
  	min-width: 192px;
    width: 23.5vw;
    max-width: 16.4rem;
    /* 518px - 700px */
    height: clamp(12.5rem, 24.25vw, 16.85rem);
    /* 16px - 28px, added margin left and bottom to cs-picture so it pushes away by the same amount the yellow box element overlaps it left and bottom. This maintains consistent spacing left and bottom */
    margin: clamp(1rem, 2.4vw, 1.75rem) 0 0 clamp(1rem, 2.4vw, 1.75rem);
    position: relative;
  }
  .RPsbsr-580 .cs-picture {
    width: 23.4vw;
    max-width: 16rem;
    min-width: 216px;
    /* 518px - 700px */
    height: clamp(21rem, 36vw, 24rem);
    /* 16px - 28px, added margin left and bottom to cs-picture so it pushes away by the same amount the yellow box element overlaps it left and bottom. This maintains consistent spacing left and bottom */
    margin: clamp(1rem, 2.4vw, 1.75rem) 0 0 clamp(1rem, 2.4vw, 1.75rem);
    position: relative;
  }
}
/*-- -------------------------- -->
<---     Book Display Highlight      -->
<--- -------------------------- -*/
/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  .RPsbsr-580 {
    background-color: #f7f7f7;
  }
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  .RPsbsr-580 .cs-container {
    justify-content: flex-end;
  }
  .RPsbsr-580 .cs-content {
    /* sends it to the left in the first position */
    order: -1;
  }
  .RPsbsr-580 .cs-picture {
    /* 16px - 28px, added margin left and bottom to cs-picture so it pushes away by the same amount the yellow box element overlaps it left and bottom. This maintains consistent spacing left and bottom */
    margin: 0 clamp(1rem, 2.4vw, 1.75rem) 0 0;
  }
}
/* Dark Mode */
@media only screen and (min-width: 0rem) {
  body.dark-mode .RPsbsr-580 {
    background-color: rgba(0, 0, 0, 0.2);
  }
}
