body {
  background: #faf7f0;
}

body:not(.home) #content {
  padding-top: 0;
  overflow: hidden;
}

body p {
  font-size: 1em;
}

#content br {
  content: "";
  margin: 8px;
  display: block;
  font-size: 24%;
}

#content .container {
  max-width: 1518px !important;
}

#content img {
  max-width: 100%;
}

.textimage {
  margin-top: 165px;
}

.textimage .wrap {
  padding-left: 20px;
}

.textimage .title {
  font-size: 57px;
  font-family: 'Noto Serif', serif;
  font-weight: 600;
  color: #CABCAB;
  margin-bottom: 94px;
}

.textimage .inner {
  display: flex;
  gap: 114px;
}

.textimage .text {
  font-size: 25px;
  line-height: 172%;
  font-family: "Noto Sans Display", serif;
  color: #000;
  width: 70%;
}

.textimage .image {
  padding-top: 11px;
  width: 50%;
}

#text1 {
  background-color: #faf7f0;
  background-image: url('../images/thummerer_minta_3.png');
  background-image: image-set(url('../images/thummerer_minta_3.png') 1x,
      url('../images/thummerer_minta_3@2x.png') 2x);
  background-size: auto;
  background-position: -1.5% 65%;
  background-repeat: no-repeat;
  padding-bottom: 137px;
}

#text1 .container {
  max-width: 1428px !important;
}

#team {
  position: relative;
  z-index: 4;
}

#team .container {
  max-width: 1390px !important;
}

#team .title {
  font-size: 57px;
  font-family: 'Noto Serif', serif;
  font-weight: 600;
  color: #CABCAB;
}

#team .inner {
  margin-top: 98px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 62px 42px;
}

#team .image {
  height: 463px;
}

#team .image img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  max-width: 100%;
  width: 100%;
}

#team .text {
  background-color: #000;
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 0.25em;
  font-family: 'Noto Serif', serif;
  text-align: center;
  height: 5.375em;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 25px;
  color:#fff;
}

#text2 {
  margin-top: -315px;
  padding: 462px 0 471px 0;
  text-align: center;
  font-size: 25px;
  line-height: 172%;
  font-family: "Noto Sans Display", serif;
  color: #000;
  position: relative;
  z-index: 3;
  background-image: url('https://shop.thummerer.hu/wp-content/uploads/2025/02/rolunk-13.jpg');
  background-image: image-set(url('https://shop.thummerer.hu/wp-content/uploads/2025/02/rolunk-13.jpg') 1x,
      url('https://shop.thummerer.hu/wp-content/uploads/2025/02/rolunk-13@2x.jpg') 2x);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#text2 .decor {
  position: absolute;
  left: -7px;
  bottom: 662px;
  z-index: -1;
}

#text2 .container {
  max-width: 1027px !important;
}

#images1 {
  background: #000;
  position: relative;
  z-index: 4;
}

#images1 .wrap {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

#images1 .decor2 {
  position: absolute;
  bottom: -166px;
  transform: translateY(-10%);
  right: -360px;
}

#images1 .image {
  margin-top: -307px;
}

#images1 .inner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#images1 .inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

#images1 .inner .image:nth-child(3) {
  grid-row: 1 / 3;
  grid-column: 2 / 3;
}

#text3 {
  position: relative;
  z-index: 1;
  padding: 106px 0 178px 0;
  text-align: center;
  color: #fff;
  background-color: #000;
}

#text3 .container p {
  font-size: 25px;
  line-height: 164%;
  font-family: "Noto Sans Display", serif;
}

#text3 .container p strong {
  font-family: 'Noto Serif', serif;
  font-size: 32px;
  margin-right: 6px;
}

#text3 .container p:first-child {
  font-size: 35px;
  margin-bottom: 71px;
  line-height: 172%;
  font-family: 'Noto Serif', serif;
}

#text3 .container p:first-child strong {
  font-size: 35px;
  font-weight: 600;
  font-family: 'Noto Serif', serif;
}

#images2 {
  margin-top: 150px;
  position: relative;
  z-index: 2;
}

#images2 .inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 21px;
}

#text4 {
  padding: 93px 0 170px 0;
  margin-top: 0;
  position: relative;
  z-index: 2;
  background-image: url('https://shop.thummerer.hu/wp-content/uploads/2025/02/rolunk-13.jpg');
  background-image: image-set(url('https://shop.thummerer.hu/wp-content/uploads/2025/02/rolunk-13.jpg') 1x,
      url('https://shop.thummerer.hu/wp-content/uploads/2025/02/rolunk-13@2x.jpg') 2x);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#text4 .inner {
  gap: 85px;
  margin-left: auto;
  max-width: 1632px;
  padding-left: 15px;
}

#text4 .text {
  width: 50%;
  min-width: 503px;
}

#text4 .image {
  width: 102%;
  margin-top: -165px;
  padding-top: 0;
}

#text4 .image img {
  width: 100%;
}

#content #text4 br {
  margin: 2px;
}

#story {
  background-color: #b7ae9d;
  padding: 106px 0 160px 0;
}

#story .title {
  font-size: 57px;
  font-family: 'Noto Serif', serif;
  font-weight: 600;
  color: #fff;
  margin: 0 auto 78px auto;
  max-width: 1382px;
}

#story .container {
  max-width: 1519px !important;
}

#story .container .image:nth-child(n+3){
  margin-top: 71px;
}

#story img {
  width: 100%;
  display: block;
  margin: 0 auto;
}

@media screen and (max-width: 1400px ) {
  #text2 .decor {
    display: none;
  }
}

@media screen and (max-width: 1300px) {
  #images2 .decor {
    right: -160px;
    max-width: 500px;
  }
}

@media screen and (max-width: 992px) {
  .textimage .inner {
    flex-direction: column;
    gap: 40px;
  }

  .textimage .text {
    width: 100%;
  }

  .textimage .image {
    width: 100%;
  }

  .textimage .wrap {
    padding-left: 0;
  }

  .textimage .title,
  #story .title {
    margin: 0 0 30px 0;
  }

  #text1 {
    padding-bottom: 0;
    background-size: 75%;
    background-position: -1.5% 3%;
  }

  #text3,
  #text2 {
    padding: 50px 0;
  }

  #text2 .decor {
    left: -97px;
    bottom: 0;
  }

  #images1 .decor2 {
    bottom: -556px;
  }

  #text4 .image,
  #text4 .text {
    width: 100%;
  }

  #text3 .container p strong,
  #text3 .container p,
  #text3 .container p:first-child strong,
  #text2,
  .textimage .text {
    font-size: 22px;
  }

  #text3 .container p:first-child {
    line-height: 140%;
    margin-bottom: 20px;
  }

  #team,
  #team .inner,
  .textimage,
  #text2,
  #images1 .image,
  #images2 {
    margin-top: 50px;
  }

  #story {
    padding: 50px 0;
  }

  #images2 .decor {
    bottom: -375px;
    right: -70px;
    max-width: 300px;
  }

  #team .inner {
    gap: 50px 30px;
  }

  #team .title {
    margin-left: 0;
    font-size: 38px;
  }

  #team .image {
    height: 290px;
  }

  #team .text {
    font-size: 14px;
    padding: 0 15px 4px 15px;
  }

  #team::before {
    top: 296px;
  }

  #text4 {
    margin-top: 0;
    padding: 50px 0;
  }

  #text4 .inner {
    padding-right: 15px;
    gap: 30px;
  }

  #text4 .image {
    margin-top: 0;
  }

}

@media screen and (max-width: 768px) {
  #story .title,
  #team .title,
  #story .title,
  .textimage .title {
    font-size: 28px;
  }

  #team .inner {
    grid-template-columns: repeat(3, 1fr);
  }

  #team .image {
    max-height: 41vw;
  }

  #images2 .decor {
    display: none;
  }

  #story .inner {
    padding: 0;
  }
}

@media screen and (max-width: 567px) {

  #text3 .container p strong,
  #text3 .container p,
  #text3 .container p:first-child strong,
  #text2,
  .textimage .text {
    font-size: 18px;
  }

  #images2 .inner,
  #images1 .inner {
    grid-template-columns: 1fr;
  }

  #images1 .inner .image:nth-child(3) {
    grid-row: unset;
    grid-column: unset;
  }

  #text2 .decor {
    left: -67px;
    bottom: 280px;
    max-width: 300px;
  }

  #images1 .decor2 {
    bottom: -356px;
    right: -110px;
    max-width: 300px;
  }

  #images1 .inner {
    gap: 0;
  }

  #team .inner {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 30px;
  }

  #team .image {
    max-height: 55vw;
  }

  #text3 .container p:first-child {
    line-height: 80%;
  }

  #text3 .container p {
    text-align: left;
  }

  #text3 .container p:first-child br {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  #team .inner {
    gap: 30px;
    grid-template-columns: 1fr;
    max-width: 289px;
    margin-left: auto;
    margin-right: auto;
  }

  #team .image {
    max-height: 80vw;
    height: 435px;
  }

  #team .image img {
    object-position: 50% 20%;
  }
}