@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap');

* {
  font-family: Lato;
  font-weight:300;
}
:root {
  --blue:#246B8B;
}
img {
  max-width:100%;
  max-height: 400px;
  height:auto;
}
.wide {
  width:90rem;
  max-width:96%;
  margin:0 auto;
}
@keyframes details-show {
  from {
    opacity:0;
    transform: var(--details-translate, translateY(-0.5em));
  }
}
h1, h2, h3, h4 {
  font-weight: 900;
}

h1 {
  font-size:1.5rem;
}
h2 {
  font-size:1.25rem;
}
.hero-slider-wrap {
  display:block;
  padding:0;
  margin:0;
  list-style-type:none;
}
nav ul {
  list-style-type:none;
  padding:0;
}
details ul {
  display:block;
  position:absolute;
  background:white;
  left:0;
  right:0;
  padding:1rem 0.5rem;
  z-index:99999;
}

details li {
  padding:0.25rem 0;
}

.hero-project, .hero-contact {
  display:flex;
  position:relative;
  flex-wrap:wrap;
  justify-content: center;
}

.hero-project-image {
  position:relative;
  padding-bottom:calc(56.25%);
  width: 100%;
}
.hero-project-image-wrap {
  position:absolute;
  top:0;
  bottom:0;
  left:0;
  right:0;

}

.personnel-list {
  display:flex;
  flex-wrap:wrap;
  gap:1rem;
  margin-bottom:2rem;
  margin-top:1rem;
  justify-content: center;
  align-items:center;
  object-position:top;
}

.single-person {
	width:calc(33% - 1rem);
}

.referense-list {
  display:flex;
  flex-wrap:wrap;
  gap:1rem;
  margin-bottom:2rem;
  margin-top:1rem;
  justify-content: center;
  align-items:center;
  object-position:top;
}

.single-referense {
        width:calc(25% - 1rem);
	white-space: nowrap;
}


@media screen and (min-width:60rem) {
  summary {
    display:none;
  }
  details ul {
    position:relative;
  }
  details li {
    display:inline-block;
    padding:0.25rem 2rem;
  }
  details li:last-of-type {
    padding-right:0;
  }
}

details[open] > *:not(summary) {
  animation: details-show 250ms ease-in-out;
}

a {
  color:var(--blue);
}
summary {
  cursor:pointer;
  list-style-type: none;
}
.main-image-wrapper {
	display:block;
	justify-content: center;
        align-items:center;
}
.hero-slide-wrapper {
	padding-bottom: 50%;
	position:relative;
	display:flex;
	justify-content: center;
	align-items:center;
}

.hero-background {
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
}
.hero-background-img {
  display:block;
  object-fit: cover;
  object-position:top center;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%,-50%);
  left: 50%;
  top: 50%;
  position:absolute;
  max-width:100%;
  max-height:100%;
}
.main-image {
	display: block;
	object-fit: cover;
	object-position: top center;
	position: absolute;
	min-width: 100%;
	min-height: 100%;
	max-width:100%;
	max-height:100%;
	left: 50%;
	top: 50%;
	transform: translate(-50%,-80%);
}


.hero-content {
  position:absolute;
  top:0;
  bottom:0;
  left:0;
  right:0;
  display:flex;
  justify-content: center;
  align-items:center;
  text-align:center;
  transition: all 0.8s;
}

.hero-content:hover {
  backdrop-filter: blur(0.25rem);
}

.hero-heading, .hero-heading a {
  z-index:2;
  color:white;
  text-decoration:none;
  text-shadow:0.25rem 0.25rem 0.5rem rgba(0,0,0,0.5);
}

.hero-heading h4 {
  font-weight:900;
  font-size:2rem;
  margin-bottom:0.5rem;
}

.narrow {
  width:54rem;
  max-width:90%;
  margin:0 auto;
}

.center {
	text-align: center;
}

.left {
	text-align: left;
}

.top {
	vertical-align: text-top;
}

.asunnot-wrapper {
  align-items:left;
width: 100%;
overflow: hidden;
text-align: left;
}

#refdata {
    width: 60%;
    float:left; /* add this */
white-space: nowrap;
}
#refimg {
  width: 40%;
    float: right; /* add this */
white-space: nowrap;
}

.site-header {
  margin:0 auto;
  padding:0.5rem;
  display:flex;
  justify-content: space-between;
  position:relative;
  align-items:center;
}

.site-content {
  padding-top:2rem;
}

h1 {
  font-weight:900;
  margin-bottom:3rem;
}
p {
  margin-bottom:2rem;
}
h1::after {
  content:"";
  display:block;
  width:5rem;
  height:0.5rem;
  background:black;
  margin-top:1rem
}

.site-footer {
  border-top:1px solid lightgray;
  padding:3rem 0;
  display: grid;
  column-gap: 1rem;
  row-gap:1rem;
  grid-template-rows: 1fr 1fr 1fr;
}
iframe {
  width:100%;
  display:block;
  margin:2rem 0;
}

.swiper-button-next, .swiper-button-prev {
  color:white;
}

nav a {
  font-weight: 900;
  color:black;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.5s;
}
nav a:hover {
  color:var(--blue);
}

@media screen and (min-width:40rem) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size:1.5rem;
  }
}

@media screen and (min-width:60rem) {
  .site-footer {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows:1fr;
  }
  .single-person {
    font-size:1rem;
    width:calc(25%);
  }
}
