@import url("./../snippets/form.css");


.main {
  @media screen and (min-width: 1024px) {
    display: flex;
    flex-direction: row;
  }
}

.gallery {
  display: block;
  width: 100%;
  height: 66vw;
  
  @media screen and (min-width: 1024px) {
    height: 100vh;
    width: 50%;
  }

  .block-gallery {
    width: 100%;
    height: 100%;
    max-height: unset;
    margin: 0;
  }

  .swiper-slide {
    position: relative;
  }

  img {
    object-fit: cover !important;
    width: 100%;
    height: 100%;
    position: absolute
  }
}

/* text */
.text {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1rem;
  width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.text > * {
  width: 100%;
  max-width: 520px !important;
}

/* first block */
.hero {
  display: grid;
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* title + intro */
.heading {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1em;
  max-width: 800px;
}

@media screen and (min-width: 640px) {
  .heading {
    margin-top: 2.5rem;
  }
}

.heading h1 {
  font-weight: 500;
  display: inline-block;
}

.heading h1 a {
  display: inline-flex;
  align-items: center;
}

.heading h1 svg {
  height: 1em;
  width: auto;
}

/* blocks */
.blocks {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  max-width: 800px;

  display: none; /* temportary? */
}

.blocks:not(:first-of-type) {
  margin-top: 0rem;
}

.block-heading h1,
.block-text h1 {
  font-size: 1.75rem;
}

.block-heading h2,
.block-text h2 {
  font-size: 1.325rem;
  font-weight: 400;
}

.block-text p {
  margin-bottom: 1em;
}

.block-text ul {
  padding-left: 0.9em;
}

.block-image {
  margin: 0.5em 0;
}

.block-image img {
  height: 45vw;
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  object-position: center;
}

.block-image figcaption {
  font-size: 0.75rem;
  margin-top: 0.5rem;
  padding: 0 20px;
  margin-bottom: 1rem;
  border-left: 2px solid;
}

.block-gallery {
  height: 45vw;
  margin: 20px 0;
  max-height: 500px;
  width: 100%;
  /* border: 2px solid black; */
}

.block-gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* object-position: top left; */
  object-position: center;
}

.block-gallery .swiper-pagination {
  display: flex;
  bottom: 0 !important;
  padding: 0;
  display: none;
}

.block-gallery .swiper-pagination .swiper-pagination-bullet {
  background-color: #fff !important;
  border-radius: 0 !important;
  flex: 1;
  height: 3px;
  margin: 0 !important;
  opacity: 1 !important;
}

.block-gallery .swiper-pagination .swiper-pagination-bullet-active {
  background-color: #000 !important;
}

.block-gallery .swiper-button-next,
.block-gallery .swiper-button-prev {
  color: black;
}

.block-gallery .swiper-button-prev {
  left: 0;
}

.block-gallery .swiper-button-next {
  right: 0;
}

.block-video iframe {
  width: 100%;
  aspect-ratio: 16/9;
}

.block-video figcaption {
  border-left: 2px solid;
  font-size: 0.75rem;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
  padding: 0 20px;
}

.block-code iframe {
  width: 100%;
  /* aspect-ratio: 16/9; */
}

iframe {
  border: none;
}

/* form */

.contact {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 3rem;
}

@media screen and (min-width: 640px) {
  .contact {
    margin-top: 40px;
  }
}

.contact > * {
  flex: 1;
}

.map {
  aspect-ratio: 16/9;

  iframe {
    aspect-ratio: 16/9;
    height: auto;
  }
}