/*=====================================================*/
/* 1200px ---------------------------------------------*/
/*=====================================================*/

@media (max-width: 1200px) {

.carousel-section { 
  padding: 30px 60px;
}

.book-carousel {
  grid-template-columns: 1fr 260px;
  gap: 40px;
}

.book-info {
  min-height: 0;
}

.author-book {
  width: 260px;
}

.carousel-title {
  font-size: 1.8rem;
}

.carousel-author {
  font-size: 1.3rem;
}

.carousel-description {
  font-size: 1.2rem;
  line-height: 1.5;
 }

 .home-authors-grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  row-gap: 30px;
}

  .footer-container {
    flex-direction: column;
    gap: 20px;
 }
  
  .footer-content,
  .footer-newsletter {
    width: 100%;
    margin-left: 0;
    justify-content: center;
    text-align: center;
  }
  
  .footer-content p {
    margin-bottom: 0;
  }

  .footer-newsletter form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 540px;
  }
  
  .footer-newsletter input[type="email"] {
    width: 100%;
    max-width: 420px;
  }

  /* Books Page */
  .book-item {
    width: calc(25% - 20px);  /* 4 books per row */
  }
  
  .isotope-grid .book-cover {
    max-height: 260px;
  }

  /* Books Detail Page */
   .book-cover-large {
    max-height: 450px;
  }
}

/*=====================================================*/
/* 1160px ---------------------------------------------*/
/*=====================================================*/

@media (max-width: 1160px) {
  
  /* --- Header --- */
  .site-header {
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
  }
  
  .site-branding {
    margin-bottom: 10px;
    margin-right: 0;
  }
  
  .site-branding img {
    margin-left: 0;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .header-links {
    display: none;
  }
  
  .mobile-menu.open {
    display: flex;
  }
}

/*=====================================================*/
/* 1060px ---------------------------------------------*/
/*=====================================================*/

@media (max-width: 1060px) {

  /* Authors Page */
		.authors-grid {
		  grid-template-columns: repeat(4, 150px);
		  gap: 40px;
		}   
}

/*=====================================================*/
/* 960px ----------------------------------------------*/
/*=====================================================*/

@media (max-width: 960px) {

	 /* --- Carousel --- */
  .carousel-section {
    padding: 30px 40px;
  }

  .book-carousel {
    grid-template-columns: 1fr 240px;
    gap: 35px;
  }

  .author-book {
    width: 240px;
  }

  /* --- Books Grid --- */
  .books-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    row-gap: 28px;
  }
  
  .grid-book-image {
    width: 170px;
    height: 255px;
  }

  /* --- Spotlight Section --- */
  .box-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .box-image {
    height: 350px;
  }

  .box-book-cover {
    max-width: 200px;
    max-height: 300px;
  }
  
/* --- Featured Authors --- */  
	.home-authors-grid {
	  grid-template-columns: repeat(3, 1fr);
	  gap: 20px;
	  row-gap: 30px;
	  }

  .home-author-polaroid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .home-author-polaroid-name {
    text-align: center;
    width: 100%;
  }	  

  /* Books Page */
  .book-item {
    width: calc(33.333% - 20px);  /* 3 books per row */
  }
  
  .isotope-grid .book-cover {
    max-height: 240px;
  }

  /* Books Details Page */
  .book-details-content {
    flex-direction: column;
    align-items: center;
  }
  
  .book-cover-column,
  .book-details-column {
    flex: 0 0 100%;
    width: 100%;
    max-width: 600px;
  }
  
  .book-cover-column {
    margin-bottom: 40px;
  }
  
  .book-details-column {
    padding: 0 20px;
  }
  
  .book-details-title,
  .book-subtitle {
    text-align: center;
  }

 .book-details-banner {
   padding-bottom: 8px;
  }

  .book-cover-column {
    margin-bottom: 16px;
  }

  .markdown-content h1 {
  	margin-top: 12px;
  }

   .content-sidebar-column {
   	margin-top: -10;
  }

  .sidebar-heading {
  	margin-top: -6px;
  }

  /* Authors Page */
		.authors-grid {
		  grid-template-columns: repeat(4, 150px);
		  gap: 40px;
		} 

  /* Authors Detail Page */
  .author-photo-large {
    width: 180px;
    height: 240px;
  }

  /* Submissions Page */  
  .faq-layout {
    flex-direction: column;
  }
  
  .faq-left {
    width: 90%;
    padding-right: 0;
  }
  
  .faq-right {
    width: 100%;
    max-width: 400px;
    margin-top: 30px;
  }
  
  .faq-header h2 {
    font-size: 28px;
  }

.newsletter-container {
  margin-top: 0;
  }
}

/*=====================================================*/
/* 768px ----------------------------------------------*/
/*=====================================================*/

@media (max-width: 768px) {

  /* --- Montage --- */
  .site-montage {
    padding: 20px;
  }

  .montage-content h1 {
    font-size: 3rem;
    max-width: 280px;
    margin: 0 auto 15px;
    word-break: break-word;
  }

  .montage-content p {
    font-size: 1.5rem;
  }

/* --- Coming Soon --- */
.coming-soon-wrapper {
  padding: 25px 30px 15px;
}

.coming-soon-rotator {
  font-size: 1.1rem;
}

  /* --- Carousel --- */
  .carousel-section {
    padding: 30px 20px;
  }

  .book-carousel {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 20px;
  }
  
  .book-info {
    text-align: center;
    min-height: 0;
  }
  
  .carousel-title {
    font-size: 1.8rem;
  }
  
  .carousel-author {
    font-size: 1.5rem;
  }
  
  .carousel-description {
    font-size: 1.1rem;
  }
  
  .author-book {
    width: auto;
    margin: 0 auto;
    justify-content: center;
    max-width: 200px;
    height: auto;
  }
  
  .carousel-book-cover {
    width: 100%;
    height: auto;
  }

  /* --- Books Grid --- */
  .books-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    row-gap: 30px;
  }
  
  .grid-book-image {
    width: 160px;
    height: 240px;
  }

  /* --- Spotlight Section --- */
  .box-section .section-header.box-header {
    margin-top: 12px;
    margin-bottom: 12px;
  }

  .box-section .section-header.box-header .container-heading {
    margin: 0 0 6px;
    font-size: 28px;
  }

  .box-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .box-image {
    height: 400px;
  }

  .box-book-cover {
    max-width: 220px;
    max-height: 330px;
  }

 /* --- Featured Authors Section --- */

  .home-authors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .home-author-polaroid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .home-author-polaroid-name {
    text-align: center;
    width: 100%;
  }  

  /* Books Page */
  .books-page-heading {
    padding-left: 2%;
    font-size: 28px;
  }
  
  .books-filter-bar {
    padding: 15px;
  }
  
  .book-item {
    width: calc(33.333% - 20px);  /* 3 books per row */
  }
  
  .isotope-grid .book-cover {
    max-height: 220px;
  }

  /* Books Detail Page */
  .content-columns {
    flex-direction: column;
  }
  
  .content-main-column,
  .content-sidebar-column {
    flex: 0 0 100%;
    padding: 0;
  }
  
  .content-sidebar-column {
    border-left: none;
    margin-top: -30px;
    margin-bottom: 10px;
    padding-top: 0;
  }

  .sidebar-heading {
    text-align: left;
    margin-top: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #000;
  } 

  .related-books {
    flex-direction: row;
    justify-content: flex-start;
    gap: 50px;
  }

  .related-book-item {
    margin-bottom: 0;
  }

  .also-by h2 {
    padding-bottom: 4px;
  }

	/* --- Authors Page --- */
	.authors-grid {
	  grid-template-columns: repeat(3, 150px);
	  gap: 30px;
	}  

  /* Author Details Page */
  .author-details-container {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
  
  .author-photo-column {
    margin-top: 20px;
    margin-bottom: 0;
  }
  
  .author-photo-large {
    width: 180px;
    height: 180px;
  }
  
  .author-details-title {
    text-align: center;
  }
}

/*=====================================================*/
/* 650px ----------------------------------------------*/
/*=====================================================*/

@media (max-width: 650px) {
  .books-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    row-gap: 25px;
  }
  
  .grid-book-image {
    width: 140px;
    height: 210px;
  }

.home-authors-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  row-gap: 30px;
  }

/* --- Books Page --- */
  .book-item {
    width: calc(50% - 20px);  /* 2 books per row */
  }
  
  .isotope-grid .book-cover {
    max-height: 240px;
    max-width: 100%;
  }
  
  .book-cover-link .book-title,
  .book-title {
    display: none;
  }

  /* Books Detail Page */
  .book-details-grid {  
    grid-template-columns: 1fr;
    gap: 5px;
  }
  
  .detail-label {
    text-align: left;
    margin-bottom: 0;
  }
  
  .book-title {
    font-size: 28px;
  }
  
  .book-subtitle {
    font-size: 16px;
  }
  
  .book-cover-large {
    max-height: 350px;
  }

.authors-grid {
  grid-template-columns: repeat(2, 150px);
  gap: 25px;
}  

/* --- Footer --- */
.footer-newsletter {
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.footer-newsletter h3 {
  text-align: center;
}

.footer-newsletter form {
  flex-direction: row;
  gap: 10px;
}

.footer-newsletter .newsletter-email,
.footer-newsletter input[type="email"] {
  width: 250px;
}

/* --- Modals --- */
  .search-modal-content,
  .about-modal-content,
  .contact-modal-content {
    margin: 15% auto;
    padding: 25px;
  }  
}

/*=====================================================*/
/* 500px ----------------------------------------------*/
/*=====================================================*/

  	/* --- Author Details Page --- */
		@media (max-width: 500px) {
		  .other-books-container .books-row {
		    display: flex;
		    flex-wrap: wrap;
		    gap: 20px;
		  }
		  .other-books-container .books-row > * {
		    flex: 0 0 calc(50% - 10px);
		    max-width: calc(50% - 10px);
		  }
		  .other-books-container .other-book-cover {
		    width: 100%;
		    max-width: 180px;
		    height: auto;
		    display: block;
		  }
		}

/*=====================================================*/
/* 480px ----------------------------------------------*/
/*=====================================================*/

@media (max-width: 480px) {
  
	/* --- Coming Soon --- */
	.coming-soon-wrapper {
	  padding: 20px 20px 15px;
	}

	.coming-soon-label {
	  font-size: 11px;
	  padding: 6px 20px;
	  letter-spacing: 2px;
	}

	.coming-soon-rotator {
	  font-size: 0.95rem;
	}

  /* --- Carousel --- */
  .carousel-section {
    padding: 30px 15px;
  }

  /* --- Books Grid --- */
  .books-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    row-gap: 25px;
  }
  
  .grid-book-image {
    width: 140px;
    height: 210px;
  }
  
  /* --- Featured Authors --- */
  .home-authors-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .home-author-polaroid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .home-author-polaroid-name {
    text-align: center;
    width: 100%;
  }

    /* --- Footer --- */
  .footer-newsletter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }
  
  .footer-newsletter h3 {
    margin: 0 0 8px 0;
  }
  
  .footer-newsletter form {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 560px;
    gap: 10px;
  }

  .footer-newsletter .newsletter-email,
  .footer-newsletter input[type="email"] {
    width: 100%;
    max-width: 520px;
  }

  .footer-newsletter .newsletter-btn,
  .footer-newsletter button {
    margin-top: -10px;
  }

  /* Books Page */
  .books-page-heading {
    font-size: 24px;
    padding-left: 0;
    text-align: center;
  }
  
  .books-filter-bar {
    width: 100%;
    padding: 12px;
    border-radius: 0;
  }
  
  .filter-dropdown-group label {
    font-size: 12px;
  }
  
  .filter-dropdown {
    padding: 8px 10px;
    font-size: 13px;
  }
  
  .reset-filters {
    padding: 10px 16px;
    font-size: 12px;
  }
  
  .books-grid-container {
    width: 100%;
  }
  
  .isotope-grid {
    margin: 0 -6px;
  }
  
  .book-item {
    width: calc(50% - 12px);  /* 2 books per row */
    margin: 0 6px 18px 6px;
  }
  
  .isotope-grid .book-cover {
    width: 100%;
    height: auto;
    max-width: none;
    max-height: none;
    display: block;
  }

  .home-authors-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  /* Books Detail Page */
  .amazon-button,
  .coming-soon-button {
    padding: 6px 12px;
    font-size: 13px;
  } 

  .books-row {
    flex-wrap: wrap;
  }

  .also-by-cover {
  	width: calc(50% - 10px);
    width: 100%;
    max-width: 180px;
  }

  .authors-grid {
    grid-template-columns: repeat(2, 140px);
    gap: 20px;
  }

  /* Submissions Page */  
  .faq-container {
    padding: 0 15px;
  }
  
  .faq-header h2 {
    font-size: 24px;
  }
  
  .faq-quick-nav {
    padding: 1rem;
  }
  
  .newsletter-container {
    padding: 12px;
  }
}