.slider-container {
position: relative;
overflow: hidden;
width: 100%;
max-width: 1200px;
margin: 0 auto;
background: #111;
border-radius: 12px;
box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}
.slider {
display: flex;
transition: transform 0.5s cubic-bezier(.4,2.08,.55,.44);
will-change: transform;
}
.slide {
min-width: 100%;
box-sizing: border-box;
position: relative;
display: flex;
flex-direction: row;
align-items: stretch;
justify-content: flex-end; }
.slide img {
width: 100%;
height: 440px;
object-fit: cover;
border-radius: 10px 10px 0 0;
display: block;
transition: filter 0.3s;
max-width: 100%;
}
.slide img:focus, .slide img:hover {
filter: brightness(0.9);
}
.text-slider {
position: absolute;
left: 24px;
right: 24px;
bottom: 60px;
font-size: 2rem;
color: #fff;
background: rgba(0,0,0,0.35);
padding: 0.4em 1em;
border-radius: 8px;
margin: 0;
z-index: 2;
text-shadow: 0 2px 6px #000;
word-break: break-word;
max-width: 90vw;
overflow-wrap: break-word;
box-sizing: border-box;
}
.text-slider a {
color: inherit;
text-decoration: none;
}
.text-slider2 {
color: #ffb100;
background: rgba(0,0,0,0.25);
padding: 0.2em 0.7em;
font-weight: bold;
border-radius: 5px;
text-decoration: none;
position: absolute;
left: 24px;
bottom: 24px;
z-index: 2;
transition: background 0.2s, color 0.2s;
max-width: 90vw;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.text-slider2:hover,
.text-slider a:hover {
background: none;
color: #fff;
} .slider-prev,
.slider-next {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: transparent;
border: none;
color: #111;
font-size: 2.4rem;
font-weight: bold;
padding: 0.2em 0.6em;
cursor: pointer;
z-index: 3;
border-radius: 0;
text-shadow: 2px 2px 0 #fff, -2px 2px 0 #fff, 2px -2px 0 #fff, -2px -2px 0 #fff;
box-shadow: none;
outline: none;
line-height: 1;
}
.slider-prev { left: 12px; }
.slider-next { right: 12px; }
.slider-prev:hover,
.slider-next:hover,
.slider-prev:focus,
.slider-next:focus {
background: transparent;
color: #111;
text-shadow: 2px 2px 0 #fff, -2px 2px 0 #fff, 2px -2px 0 #fff, -2px -2px 0 #fff;
} .slider-dots {
position: absolute;
left: 50%;
bottom: 12px;
transform: translateX(-50%);
display: flex;
gap: 6px;
z-index: 3;
}
.slider-dot {
width: 12px;
height: 12px;
background: #fff;
opacity: 0.6;
border-radius: 50%;
border: none;
cursor: pointer;
transition: opacity 0.2s, background 0.2s;
}
.slider-dot.active,
.slider-dot:hover,
.slider-dot:focus {
opacity: 1;
background: #ffb100;
} @media (max-width: 1024px) {
.slide img { height: 320px; }
.text-slider { font-size: 1.4rem; left: 12px; right: 12px; bottom: 40px; padding: 0.3em 0.7em; }
.text-slider2 { left: 12px; bottom: 12px; font-size: 1rem; }
.slider-prev, .slider-next { font-size: 2rem; }
} @media (max-width: 768px) {
.slider-container {
border-radius: 0;
max-width: 100vw;
box-shadow: none;
}
.slide img { height: 180px; }
.text-slider, .text-slider2 { font-size: 1rem; left: 6px; right: 6px; }
.text-slider { bottom: 30px; padding: 0.25em 0.5em; }
.text-slider2 { bottom: 6px; padding: 0.2em 0.5em; }
.slider-prev, .slider-next { font-size: 1.5rem; padding: 0.1em 0.4em; }
} @media (max-width: 480px) {
.slide img { height: 110px; }
.text-slider, .text-slider2 { font-size: 0.85rem; left: 4px; right: 4px; }
.text-slider { bottom: 18px; }
.text-slider2 { bottom: 2px; }
.slider-prev, .slider-next { font-size: 1.2rem; left: 2px; right: 2px;display: none; }
}
@media (max-width: 329px) {
.slider-container {
display: none !important;
}
.slider-prev, .slider-next { display: none; }
}
.text-slider {
margin-top: -2em;
margin-left: 1em;
margin-right: 1em;
font-size: 2em;
color: #fff;
word-break: break-word;
max-width: 90vw;
line-height: 1.1;
background: rgba(0,0,0,0.35);
padding: 0.4em 0.7em;
border-radius: 8px;
text-shadow: 0 2px 6px #000;
box-sizing: border-box;
}
.text-slider a { 
text-decoration: none;
color: #fff;
text-shadow: -2px 3px 0px rgba(0,0,0,0.6);
word-break: break-word;
}
.text-slider2 {
text-decoration: none;
color: #fff;
margin-bottom: 1em;
display: inline-block;
padding: 0.2em 0.7em;
font-size: 1em;
background: rgba(0,0,0,0.2);
border-radius: 5px;
font-weight: bold;
max-width: 90vw;
overflow-wrap: break-word;
}
@media (max-width: 1024px) {
.text-slider {
font-size: 1.5em;
margin-top: -1.2em;
margin-left: 0.7em;
margin-right: 0.7em;
padding: 0.35em 0.5em;
}
.text-slider2 {
font-size: 0.95em;
padding: 0.18em 0.5em;
}
}
@media (max-width: 768px) {
.text-slider {
font-size: 1.1em;
margin-top: -0.8em;
margin-left: 0.3em;
margin-right: 0.3em;
padding: 0.25em 0.3em;
}
.text-slider2 {
font-size: 0.9em;
padding: 0.12em 0.3em;
margin-bottom: 0.7em;
}
}
@media (max-width: 480px) {
.text-slider {
font-size: 0.85em;
margin-top: -0.5em;
margin-left: 0.15em;
margin-right: 0.15em;
padding: 0.15em 0.15em;
}
.text-slider2 {
font-size: 0.8em;
padding: 0.08em 0.2em;
margin-bottom: 0.3em;
}
}