.brochure-reader {
  overflow: hidden;
}
.brochure-reader__container {
  max-width: 1240px;
  width: 100%;
  margin: auto;
}
.brochure-reader .canvas-controls {
  display: none;
  align-items: center;
  height: 100%;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: border 0.3s ease-in-out;
}
@media screen and (min-width: 577px) {
  .brochure-reader .canvas-controls {
    display: flex;
  }
}
.brochure-reader .canvas-controls:hover {
  border-color: #6fd1e6;
}
.brochure-reader .canvas-controls.left {
  margin-right: 12px;
}
.brochure-reader .canvas-controls.right {
  margin-left: 12px;
}
.brochure-reader .canvas-controls__btn {
  border: none;
  background: none;
  padding: 0;
}
.brochure-reader .canvas-row {
  padding-top: 1.5rem;
  padding-bottom: 1.8rem;
  position: relative;
  align-items: center;
}
.brochure-reader .canvas-row .canvas-col {
  display: flex;
  padding-left: 6px;
  padding-right: 6px;
}
.brochure-reader__nav {
  width: 300px;
  margin: auto;
  height: 48px;
  background-color: var(--light);
  padding: 12px;
  border-radius: 8px;
}
.brochure-reader__nav button {
  border: none;
  outline: none;
  background: none;
  padding: 0;
}
.brochure-reader__nav__pages-nums {
  background: white;
  border-radius: 8px;
  padding: 3px 30px 3px 30px;
  font-size: 12px;
  font-weight: bold;
  display: inline-block;
  margin: 0 12px;
  max-width: 150px;
  width: 100%;
}
.brochure-reader__nav svg path {
  transition: fill ease-in-out 0.3s;
}
.brochure-reader__nav svg:hover path {
  fill: #467bcd;
}
.brochure-reader__get-brochure {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
@media (min-width: 992px) {
  .brochure-reader__get-brochure {
    justify-content: flex-end;
  }
}
.brochure-reader__tools {
  text-decoration: none;
  color: black;
  background: none;
  border: none;
}
@media (max-width: 575.98px) {
  .brochure-reader__tools {
    display: flex;
  }
}
.brochure-reader__tools:first-of-type {
  margin-right: 40px;
}
@media (max-width: 575.98px) {
  .brochure-reader__tools:first-of-type {
    width: calc(40% - 10px);
  }
}
.brochure-reader__tools:hover .--text:after {
  width: 100%;
}
.brochure-reader__tools .--text {
  margin-left: 12px;
  position: relative;
}
@media (max-width: 575.98px) {
  .brochure-reader__tools .--text {
    display: flex;
    align-items: center;
    height: 100%;
  }
}
.brochure-reader__tools .--text:after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  background-color: rgb(0, 188, 228);
  bottom: -5px;
  left: 0;
  transition: all ease-in-out 0.3s;
}
@media (max-width: 575.98px) {
  .brochure-reader__tools.fullscreen {
    margin-top: 20px;
  }
}
.brochure-reader__tools.fullscreen .--icon {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  width: 40px;
  height: 40px;
  background-color: var(--color-subtle);
  border-radius: 50%;
}
.brochure-reader__tools.fullscreen .--icon .svg-icon {
  position: absolute;
  left: 8px;
  top: 8px;
}

/* CSS for the loader */
#loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: absolute;
  top: 20%;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 9999;
  visibility: hidden;
  color: var(--primary);
}
#loader p {
  font-size: 1.2rem;
}

.pdf-container {
  display: none;
}
.pdf-container iframe {
  width: 100vw;
  height: 100vh;
}
.__full-screen .pdf-container {
  display: block;
}

/* Add these CSS styles in your stylesheet */
.zoom-button {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px 20px;
  cursor: pointer;
  z-index: 1; /* Place the button above the page content */
}

.page:hover .zoom-button {
  display: block; /* Show the button on hover */
}

/* Add these CSS styles in your stylesheet */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  overflow: auto;
}
.modal.active {
  display: block;
}
.modal.zoom canvas {
  cursor: zoom-out;
}
.modal canvas {
  cursor: zoom-in;
}

.close-button {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 30px;
  cursor: pointer;
  color: white;
}

.modal .canvas-page {
  display: block;
  margin: 30px auto !important;
  background-color: white;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

#flipbook .page {
  cursor: zoom-in;
}
.__page--brochures {
  margin-top: 84px;
}
@media (min-width: 992px) {
  .__page--brochures {
    margin-top: 54px;
  }
}

.__brochures {
  margin-bottom: 32px;
}
.__brochures--collections--item {
  width: calc(25% - 9px);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}
@media (max-width: 991.98px) {
  .__brochures--collections--item {
    width: 100%;
  }
}
.__brochures--collections--item img {
  width: 100%;
}
.__brochures--collections--item--cta {
  padding: 8px 12px;
}
.__brochures--collections--item--tag {
  font-size: 0.875rem;
  color: var(--text-primary);
  padding: 6px 12px;
  line-height: 1;
  display: block;
  border-radius: 40px;
  border: 1px solid var(--border-color);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  margin-right: 12px;
}
.__brochures--collections:not(.grid) {
  column-gap: 24px;
  row-gap: 32px;
  display: grid;
  grid-template-columns: repeat(4, calc(25% - 18px));
}
.__brochures .gutter-sizer {
  width: 12px;
}
@media (max-width: 575.98px) {
  .__brochures .gutter-sizer {
    width: 0;
  }
}
