.material-slider {
    width: 100%;
    margin-top: 40px;
    margin-bottom: 40px;
    max-width: 1600px;
    overflow: hidden;
}

.liner {
    padding-bottom: 50px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 40px;
}

.material-slider-wrap {
    display: flex;
    flex-direction: row;
    gap: 35px;
    transition: transform 0.3s ease;
    will-change: transform;
}

.material-block {
    display: flex;
    min-width: 505px;
    height: auto;
    /* border: 2px #000 solid; */
    border-radius: 10px;
    padding: 40px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    flex-flow: column;
}

.material-slider-button {
    width: 55px;
    height: 55px;
    background-color: #5f6547;
    border-radius: 100%;
    display: flex;
    padding: 12.5px;
}

.material-slider .button-wrap {
    display: flex;
    flex-direction: row;
    margin-top: 2%;
    gap: 1%;
}

.material-block-header {
    padding-top: 0;
    font-size: 2.5em;
    text-align: left;
    width: 100%;
    text-shadow: 0px 2px rgba(0, 0, 0, 0.5);
}

.material-block-body {
    font-size: 1em;
    text-align: left;
    width: 100%;
}

.material-slider-button {
  width: 55px;
  height: 55px;
  /* border: 2px #000 solid; */
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff; /* Base arrow color */
  cursor: pointer;
  transition: color 0.3s ease;
}

.arrow-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.material-slider-button:hover {
  color: #1d1d1d; /* Arrow changes colour on hover */
}

/* .timber {
background-image: url(../images/timber.webp);
} */

.timber {
    background-image: url(../images/timber.webp);
    background-size: cover;
    background-position:center;
}

.overlay {
    position: relative;
    background-size: cover;
    overflow: hidden;
    color: white;
}

.overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.25);
    z-index: 1;  
}

.overlay > * {
    position: relative;
    z-index: 2;
}

.italic {
    font-style: italic;
}

.aluminium {
    background-image: url(../images/aluminium.webp);
    background-size: cover;
    background-position:center;
}

.upvc {
    background-image: url(../images/upvc.webp);
    background-size: cover;
    background-position:center;
}

.thermalbreak {
    background-image: url(../images/thermalbreak.webp);
    background-size: cover;
    background-position:center;
}

.flushglaze {
    background-image: url(../images/flushglaze.webp);
    background-size: cover;
    background-position:center;
}

@media screen and (max-width:1800px) {
  .material-block {
    min-width: calc((100% - 70px) / 3);
  }
}

@media screen and (max-width:1300px) {
  .material-block {
    min-width: calc((100% - 35px) / 2);
  }
}

@media screen and (max-width:1170px) {
  .material-block {
    min-width: 100%;
  }
}

@media screen and (max-width: 700px) {
    .material-slider .button-wrap {
        margin-top: 4%;
    }
}