.image-slider {
    position: relative;
    display: flex;
    flex-flow: column;
    /* width: clamp(360px, 96vw, 830px); */
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 300px;
    overflow: hidden;
    border-radius: 0px;
    container-type: inline-size;
    contain: content;
    background-color: #0006;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 2px, rgba(0, 0, 0, 0.3) 0px 2px 4px,
        rgba(0, 0, 0, 0.25) 0px 4px 8px, rgba(0, 0, 0, 0.2) 0px 8px 16px,
        rgba(0, 0, 0, 0.15) 0px 16px 32px;
        max-height: 700px;
        height: 100%;
}

.slider__content {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
}

.slider-control--button {
    border: 0;
    background: 0;
    outline: 0;
    cursor: pointer;
    place-content: center;
    padding-inline: 3vw;
    z-index: 1;
    display: grid;
}


.icon {
    height: 2rem;
    width: 2rem;
    fill: var(--icon-default);
    border-radius: 50%;
}

.slider-control--button:hover {
    background-image: linear-gradient(
        to var(--position),
        #0000 0%,
        #0002 50%,
        #0006 100%
    );
}

.slider-control--button:hover .icon {
    fill: var(--icon-accent);
    background: #0001;
}

.slider-control--button:active {
    outline: 0.2em solid hsl(204 100 53);
    outline-offset: -0.5em;
}

.prev-button {
    --position: left;
}
.next-button {
    --position: right;
}

.image-display {
    position: relative;
    inset: 0;
    width: 100%;
    height: 700px;
    overflow: hidden;
}
.image-display::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.slider-navigation {
    z-index: 10;
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-columns: 100%;
    gap: 1.25rem;
    padding: 1rem;
    place-content: center;
    max-width: 700px;
    margin: 0px auto;
    position: absolute;
    top: auto;
    left: 50%;
    bottom: 10%;
    max-height: 250px;
   height: 100%;
}

.nav-button {
    display: grid;
    width: 320px !important;
    height: 100% !important;
    border-radius: 0.5em;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    border: 0;
    aspect-ratio: 6 / 3;
    transition: filter 150ms linear, scale 266ms ease;
    min-height: 186px;
    padding: 0 !important;
}

.thumbnail {
    display: block;
    max-width: 100%;
    width: 100%;
    object-fit: cover;
    height: 100% !important;
}

.nav-button[aria-selected="true"] {
    scale: 1.1;
}

.nav-button[aria-selected="true"],
.nav-button:focus-visible {
    outline: 0.2em solid var(--active-color);
    outline-offset: 0.2em;
}

.nav-button[aria-selected="false"] {
    filter: opacity(0.7);
}

.nav-button[aria-selected="false"]:hover,
.nav-button[aria-selected="false"]:focus-visible {
    filter: opacity(1);
}

.slide-content {
    position: absolute;
    left: 0;
    top: 30%;
    text-align: left;
    padding: 15px;
    color: white;
    border-radius: 5px;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    right: 0;
}

.slide-content h2 {
    margin: 0 0 20px;
    font-size: 38px;
    line-height: 68px;
    max-width:600px;
    width: 100%;
}

.slide-content p {
    margin: 0 0 10px;
    font-size: 16px;
}

.slide-button {
    display: inline-block;
    padding: 20px 25px;
    background: #d60000;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    margin-top: 15px;
}

.slide-button:hover {
    background: #b30202;
}
@media(min-width:1441px) and (max-width:1740px){
	.slider-navigation {
		left: 39%;
		bottom: 10%;
		max-height: 220px;
		height: 100%;
	}
	.nav-button {
		width: 310px !important;
		min-height: 175px;
		padding: 0 !important;
	}
}
@media(min-width:1201px) and (max-width:1440px){
	.slider-navigation {
		left: 37%;
		bottom: 10%;
		max-height: 220px;
		height: 100%;
	}
	.nav-button {
		width: 248px !important;
		min-height: 140px;
		padding: 0 !important;
	}
}
	@media(min-width:1025px) and (max-width:1220px){
		.slider-navigation {
		left: 28%;
		bottom: 6%;
		max-height: 180px;
		height: 100%;
	}
	.nav-button {
		width: 230px !important;
		min-height: 130px;
	}
	.slide-content h2 {
		font-size: 38px;
		line-height: 54px;
		max-width:50%;
	}
	.slide-content {
		top: auto;
		bottom:50%;
	}
	
	  .slide-button {
		padding: 15px 25px;
		margin-top: 15px;
	}
}
@media(min-width:768px) and (max-width:1024px){
	.slider-navigation {

    max-width: 700px;
    margin: 0px auto;
    position: absolute;
    top: auto;
    left: 20%;
    bottom: -6%;
    max-height: 250px;
    height: 100%;
}
	.nav-button {
		width: 178px !important;
		height: 100% !important;
		min-height: 101px;
	}
	.slide-content h2 {
		margin: 0 0 20px;
		font-size: 32px;
		line-height: 48px;
		max-width:50%;
	}
	.slide-content {
		position: absolute;
		left: 0;
		top: auto;
		bottom:50%;
	}
	.slider-navigation {
		gap:15px;
	}
	  .slide-button {
		padding: 15px 25px;
		margin-top: 15px;
	}
}
@media (max-width:767px){
	.slide-content {
		left: 0px;
		top: 30px;

	}
	.slide-content h2 {
		font-size: 20px;
		line-height: 38px;
	}
	.slide-button {
		padding: 8px 15px;
	}
	.slide-content p{
	    font-size: 14px;
	}
	.hero-ban-title{
	    font-size: 18px;
	    line-height: 26px;
	}
	.hero-ban-title span{
	    font-size: 22px;
	}
	.intro-text{
	    font-size: 14px;
	}
}

@media (max-width: 660px) {
    .nav-button:not(:has(img)) {
        background-color: rgb(241, 235, 232);
    }

    .slider-navigation {
        display: flex;
        justify-content: center;
        padding-block: 1.5em;
    }

    .nav-button {
        inline-size: 0.625rem;
        aspect-ratio: 1;
        border-radius: 50%;
    }

    .nav-button > .thumbnail {
        display: none;
    }

    .nav-button[aria-selected="true"] {
        background-color: black;
        scale: 1.5;
    }
}