

@media only screen and (min-width: 769px) {
    .references-main {
        padding-top: 300px;
        margin-bottom: 60px !important;
    }
}

@media (min-width: 1025px) and (max-width: 1440px){
.references-main {
        padding-top: 180px !important;
        margin-bottom: 45px !important;
    }
}


@media only screen and (max-width: 769px) {
    .references-main {
        padding-top: 50px;
    }
    .references-main-container {
        margin-top: 50px;
    }
    .video-wrapper > h1 {
        margin-top: 30px;
    }
}



@media only screen and (max-width: 530px) and (min-width: 431px){
    .headline-wrapper > h1 {
        font-size: 64px;
    }
}

@media only screen and (max-width: 430px) {
    .references-main {
        margin-bottom: 0;
        margin-top: 0;

        padding-top: 0;
        height: 50vh;
    }
    .references-main-container {
        margin-top: 0px;
    }


    .references-main-text > h2 {
        font-size: 28px;
    }
    .headline-wrapper {
        margin-top: 30px;
    }
    .headline-wrapper > h1{
        margin-top: 0;
    }
}


.headline-wrapper {
    display: inline-block; /* wrapper se zmenší na obsah */
    position: relative;
    margin-top: 30px;
}

.headline-wrapper h1 {
    margin: 0;
    display: table-caption; /* aby h1 přesně obalovalo text */
    position: relative;
}

.headline-text {
    display: inline-block; /* nutné pro správné pozicování ikon */
    position: relative;
}

/* Globální styly pro ikonky */
.references-img {
    position: absolute;
    width: 50px; /* uprav podle potřeby */
    height: auto;
}

.references-top-right {
    top: 0;
    right: -5px;
 transform: translate(50%, -50%) rotate(180deg);
}

.references-bottom-left {
    bottom: 20px;
    left: -30px;
    transform: translate(-50%, 50%);
}


@media (max-width: 600px) {
   .references-bottom-left {
    bottom: 10px;
    left: -15px;
    transform: translate(-50%, 50%);
}

.references-img {
    position: absolute;
    width: 30px;
    height: auto;
}


.references-top-right {
    top: 0;
    right: 20px !important;
    transform: translate(50%, -50%) rotate(180deg);
}

div.headline-wrapper .references-bottom-left {
        bottom: 15px !important;
        left: 0px !important;
        transform: translate(-50%, 50%);
    }
}



@media(max-width: 430px) {

  .references-img {
        position: absolute;
        width: 25px !important;
        height: auto;
    }

  .references-top-right {
    top: 0px;
    right: 35px !important;
    transform: rotate(180deg);
  }

      .references-top-right {
        top: 0;
        right: -8px !important;
        transform: translate(50%, -50%) rotate(180deg);
    }

        div.headline-wrapper .references-bottom-left {
        bottom: 5px !important;
        left: -15px !important;
        transform: translate(-50%, 50%);
    }
}