.hero-wrapper {
  height: fit-content;
  margin-bottom: 50px;
  margin-top: calc(var(--header-height) * -1);
  background-size: cover;
  padding: var(--header-height) var(--large-spacing);
  display: flex;
  align-items: center;
  background-image: url(/public/assets/images/homepage/cover.jpg);
}
.block--padding-bottom {
  padding-bottom: 5rem;
}
.block--padding-right {
  padding-right: 5rem;
}
.block--padding-top {
  padding-top: 5rem;
}
.lh-normal {
  line-height: 1.4;
}
.mb-small {
  margin-bottom: 1rem;
}
.mb-regular {
  margin-bottom: 2.5rem;
}
.mb-large {
  margin-bottom: 5rem;
}
.block img {
  width: 100%;
}

.desktop-only {
  display: none;
}

.block-double-spacing {
  padding: 3rem 1rem;
}
.block-background--manifesto {
  background-image: url(/public/assets/images/homepage/5-phone.jpg);
  margin-bottom: 5rem;
}
.block-background {
  background-size: cover;
  background-position: center;
}
.block--circular-design img:first-of-type {
  padding-left: 6.8rem;
}
.block--circular-design img:nth-child(3) {
  padding-left: 10rem;
  padding-bottom: 5rem;
}
.block--circular-design img:nth-child(4) {
  padding-right: 5rem;
}
.block--centered {
  padding-top: 0;
}
.block-images-column {
  display: grid;
  gap: 4rem;
}
.block-images-column img:first-child {
  padding-right: 6.8rem;
}
.block-images-column img:last-child {
  padding-left: 10rem;
}
.image--square {
  width: 100vw;
  height: 100vw;
  object-fit: cover;
}
.block--primary {
  background-color: var(--primary-color);
}
.block-large .large-title {
  margin-bottom: 6rem;
}
.block--squares .block-content {
  padding: 4rem 3rem 0 0;
}
.block--squares {
  padding-left: 1rem;
  padding-right: 1rem;
}
.block--squares-reversed {
  display: flex;
  flex-direction: column-reverse;
}
.block--squares img {
  width: calc(100vw - 2rem);
  height: calc(100vw - 2rem);
}
.block-content ul li {
  list-style-type: square;
  list-style-position: outside;
  margin-left: 20px;
}

.block-content svg {
  height: 16px;
  width: 16px;
  border: 1.5px solid;
  border-radius: 50%;
  display: inline;
  padding: 3px;
  position: relative;
  top: 3px;
}
a.small-btn {
  display: inline-block;
}
.block-categories {
  padding: 2.5rem;
  display: grid;
  gap: 5rem;
}
.block-categories a {
  margin-bottom: 1.5rem;
  display: block;
}
.block-categories img {
  width: 100%;
}
.block-categories > div > div {
  display: grid;
  gap: 1.5rem;
}
.block-categories svg {
  width: 13rem;
  height: 13rem;
}
.block-2-columns {
  display: flex;
  flex-direction: column-reverse;
}
.block.block-2-columns.block--padding-bottom.block--text-bottom{
display: flex;
flex-direction: column;
}
.block img {
  width: 100%;
}
.block-single-image {
  width: 60%;
  margin-right: 40%;
}
.block-single-image-end {
  width: 60%;
  margin-left: 40%;
}
.block-content {
  padding: 25px;
}
.spacer {
  height: 2.5rem;
}
.block-2-images {
  display: grid;
  gap: 5rem;
}
.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 10rem 2.5rem;
  background-color: var(--primary-color);
}

.carousel {
  display: flex;
  gap: 2.5rem;
  transition: transform 0.3s ease;
}

.carousel-item {
  flex: 0 0 250px;
}

.carousel-item img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 35/46;
}

.carousel-button {
  z-index: 2;
  background-color: transparent;
  width: 5rem;
  height: 5rem;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.3);
}
.carousel-button svg{
  height: 5rem;
  width: 5rem;
  fill: white;
}

.carousel-button.prev {
  left: 10px;
  transform: translateY(-50%) rotate(90deg);

}

.carousel-button.next {
  right: 10px;
}
@media screen and (min-width: 768px) {
  .block-2-columns .desktop-only {
    display: block;
  }
  .block-2-images {
    grid-template-columns: 1fr 1fr;
    align-items: flex-end;
    margin-bottom: 10rem;
  }
  .block-2-images img:last-of-type {
    margin-bottom: -10rem;
  }
  .hero-description {
    width: 50%;
  }
  .block-categories > div:nth-child(1) {
    padding-right: 20rem;
  }

  .block-categories > div:nth-child(2) {
    margin-right: -2.5rem;
    padding-left: calc(var(--large-spacing) * 2);
  }
  .block-categories > div:nth-child(3) {
    padding: 0 var(--large-spacing);
  }
  .block-categories {
    padding: var(--large-spacing) 2.5rem;
  }
  .block-categories > div:nth-child(1) {
    padding-right: 50%;
  }

  .block-categories > div:nth-child(2) {
    width: calc(50% - 7rem);
    margin-right: -2.5rem;
    padding-left: 0;
    justify-self: flex-end;
    margin-top: -30rem;
  }
  .block-categories > div:nth-child(3) {
    padding: 0 40% 0 10%;
    margin-top: -10rem;
  }
  .block-2-columns, .block-2-columns-bottom, .block.block-2-columns.block--padding-bottom.block--text-bottom{
    display: grid;
    grid-template-columns: 4.6fr 5.4fr;
    align-items: center;
  }
  .block-2-columns-reversed {
    display: grid;
    grid-template-columns: 5.4fr 4.6fr;
  }
  .block-2-columns-bottom .block-single-image{
    margin-right: 0;
    width: 100%;
  }
  .carousel-container{
    padding: var(--large-spacing)
  }
  .carousel-item {
    flex: 0 0 350px;
  }
  .carousel {
    gap: 4rem;
  }
  .block-single-image-end {
    width: 40%;
    margin-left: 60%;
  }
  .block-single-image {
    width: 40%;
    margin-right: 60%;
  }
  .block-single-image--small img{
    padding-left:calc( var(--large-spacing) * 1.5);
  }
}
@media screen and (min-width: 992px) {
  .block--text-bottom, .block.block-2-columns.block--padding-bottom.block--text-bottom{
    align-items: flex-end;
  }
  .block--indented-top{
    margin-top: -5rem;
  }
  .block-2-images img:last-of-type{
    margin-bottom: -30rem;
  }
  .block-2-images{
    margin-bottom: 30rem;
  }
  .block-background--manifesto {
    background-image: url(/public/assets/images/homepage/5.jpg);
  }
  .hero-wrapper {
    height: 100vh;
    background-image: url(/public/assets/images/homepage/cover.jpg);
  }
  .block-2-images {
    gap: var(--large-spacing);
  }
  .spacer {
    height: var(--large-spacing);
  }
  .block--padding-right {
    padding-right: var(--large-spacing);
  }
  .block-content {
    padding: var(--large-spacing);
  }
  .block-content--short {
    width: 80%;
  }


  .desktop-only {
    display: block;
  }
  .mb-regular {
    margin-bottom: 4rem;
  }
  .mb-large {
    margin-bottom: 5rem;
  }
  .small-btn {
    font-size: 1.6rem !important;
    padding: 0.5rem 2rem !important;
  }

  .hero-wrapper {
    margin-bottom: var(--large-spacing);
  }
  .block--padding-bottom, .block.block-2-columns.block--padding-bottom.block--text-bottom {
    padding-bottom: var(--large-spacing);
  }
  .block--padding-top {
    padding-top: var(--large-spacing);
  }

  .image--no-padding-desktop {
    padding: 0 0 var(--large-spacing) 0 !important;
  }

  .block-double-spacing {
    padding: calc(var(--large-spacing) * 2)
  }
  .block-background--manifesto {
    margin-bottom: calc(var(--large-spacing)  * 2);
  }
  .block--circular-design {
    display: grid;
    grid-template-columns: 4.8fr 5.2fr;
    gap: var(--large-spacing) calc(var(--large-spacing) * 2);
  }

  .block--circular-design img:first-of-type {
    padding: 3rem 0 0 0;
    grid-column: 2/3;
    grid-row: 3/4;
  }
  .block--circular-design img:nth-child(4) {
    padding: 0;
    grid-column: 1/2;
    grid-row: 3/4;
  }
  .block--circular-design img:nth-child(3),
  .block--circular-design div:first-of-type {
    grid-column: span 2;
    padding: 0;
  }
  .block--circular-design img:nth-child(3) {
    grid-row: 1/2;
    width: 50%;
    padding-left: calc(2 * var(--large-spacing));
  }
  .block--circular-design div:first-of-type {
    grid-row: 2/3;
    padding-left: 30%;
    width: 80%;
  }
  .block-images-column {
    grid-template-columns: 5.2fr 4.8fr;
    gap: var(--large-spacing) calc(var(--large-spacing) * 2);
  }
  .block-images-column img {
    padding: 0 !important;
  }
  .block-images-column img:first-child {
    padding-top: 3rem !important;
  }
  .image--square {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
  .block-large .large-title {
    margin-bottom: 12rem;
  }

  .block--centered {
    padding-left: 30%;
    width: 80%;
  }
  .block--padding-bottom-desktop {
    padding-bottom: var(--large-spacing);
  }
  .block--padding-top-desktop {
    padding-top: var(--large-spacing);
  }
  .block--squares {
    padding-left: 0;
    padding-right: 0;
    display: grid;
    grid-template-columns: 4.5fr 5.5fr;
  }

  .block--squares.block--squares-reversed {
    grid-template-columns: 5.5fr 4.5fr;
  }
  .block--squares img {
    width: 100%;
    height: 45vw;
  }
  .block--squares .block-content {
    width: 100%;
    padding: 0 var(--large-spacing);
  }

  .block--squares:not(.block--squares-reversed) .block-content {
    padding-left: calc(var(--large-spacing) / 2);
  }
  .block-content svg {
    height: 18px;
    width: 18px;
    padding: 4px;
  }
}

/*
  1. Base Condition: Screen Width is 768px or greater AND Screen Height is LESS THAN 500px
*/
@media screen and (min-width: 992px) and (max-height: 899px) {
  .hero-wrapper {
    height: auto;
    background-image: url(/public/assets/images/homepage/cover.jpg);
  }
}

/*
  2. Alternative Condition: Screen Width is 992px or greater AND Screen Height is 500px or greater
*/
@media screen and (min-width: 992px) and (min-height: 900px) {
 .hero-wrapper {
    height: 100vh;
    background-image: url(/public/assets/images/homepage/cover.jpg);
  }
}

@media screen and (min-width: 1500px) {
  .block-content svg {
    height: 24px;
    width: 24px;
    padding: 5px;
  }
}
