قوموا بتعديل هذا الاستايل حتي يعمل مع اي device بطريقه صحيحيه ويكون responsive لاي device
2- ابتكروا تضاميم جذابه كي تعمل مع اي عدد شرائح . اريد الشغل الاحترافي
3- اريد دائما الاستايل كامل كامل كامل مع التحديث او التعديل

<style>
@font-face {
  font-family: 'slidefont';
  src: url("https://cdn.jsdelivr.net/gh/hamianemohssine/7amian@master/font-icons/Five-News-Ticker.woff2");
}

.slider-1-container,
.slider-1,
.slider-1-item {
  height: auto;
  width: 100%;
}

.slider-1-container {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  padding: 15px 10px;
  box-sizing: border-box;
}

.slider-1-container *,
.slider-1 * {
  box-sizing: border-box;
  transition: 1s;
}

.slider-1-info,
.slider-1-photo {
  transition: .5s;
  display: flex;
  height: 100%;
}

.slider-1 {
  display: grid;
  gap: 5px;
  text-align: right;
  direction: rtl;
  max-width: 1100px;
}

/* Layout based on item count */
.slider-1[data-count="1"] {
  grid-template-columns: 1fr;
}

.slider-1[data-count="2"] {
  grid-template-columns: repeat(2, 1fr);
}

.slider-1[data-count="3"] {
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
}
.slider-1[data-count="3"] .slider-1-item:first-child {
  grid-row: 1;
}
.slider-1[data-count="3"] .slider-1-item:nth-child(2),
.slider-1[data-count="3"] .slider-1-item:nth-child(3) {
  display: inline-block;
  width: 49%;
}

.slider-1[data-count="4"] {
  grid-template-columns: 1fr 2fr;
  grid-template-rows: repeat(3, 1fr);
}
.slider-1[data-count="4"] .slider-1-item:first-child {
  grid-row: 1 / 4;
  grid-column: 1 / 2;
}
.slider-1[data-count="4"] .slider-1-item:nth-child(2),
.slider-1[data-count="4"] .slider-1-item:nth-child(3),
.slider-1[data-count="4"] .slider-1-item:nth-child(4) {
  grid-column: 2 / 3;
}

.slider-1[data-count="5"] {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
}
.slider-1[data-count="5"] .slider-1-item:first-child {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
}
.slider-1[data-count="5"] .slider-1-item:nth-child(2),
.slider-1[data-count="5"] .slider-1-item:nth-child(3) {
  grid-column: 1 / 2;
}
.slider-1[data-count="5"] .slider-1-item:nth-child(4),
.slider-1[data-count="5"] .slider-1-item:nth-child(5) {
  grid-column: 3 / 4;
}

/* Default item styles */
.slider-1-item {
  position: relative;
  padding-bottom: 68%;
  background-color: #f9f9f9;
  overflow: hidden;
}

.slider-1-item > a {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

.slider-1-photo {
  width: 100%;
  background-size: cover;
  background-repeat: round;
  opacity: 0;
}
.slider-1-photo.slider-op {
  opacity: 1;
}

.slider-1-label {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #00c;
  color: #fff;
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 12px;
  box-shadow: 0 1px 2px #000;
}

.slider-1-info {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  background: linear-gradient(0deg, #000, transparent, transparent);
  flex-direction: column;
  justify-content: flex-end;
  padding: 5px 10px;
  gap: 5px;
}

.slider-1-item:hover .slider-1-info {
  padding-bottom: 15px;
}

.slider-1-date {
  color: #f7f7f7;
  text-shadow: 1px 1px 3px #000;
  font-size: 12px;
  display: flex;
}
.slider-1-date:before {
  content: "\f017";
  margin-left: 4px;
  font-family: "slidefont";
}

.slider-1-title {
  display: -webkit-box;
  color: #fff;
  text-shadow: 1px 1px 5px #000;
  margin: 0 0 5px;
  padding: 0;
  font-size: 1rem;
  line-height: 1.5rem;
  white-space: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 3rem;
  text-overflow: ellipsis;
}

.slider-1-item:first-child .slider-1-title {
  font-size: 1.3rem;
  line-height: 2rem;
  max-height: 4rem;
}

/* Responsive Styles */
@media (max-width: 900px) {
  .slider-1[data-count="4"],
  .slider-1[data-count="5"] {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: auto;
  }
}

@media (max-width: 600px) {
  .slider-1 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .slider-1-title {
    font-size: .8rem;
    line-height: 1.3rem;
    max-height: 2.6rem;
  }
  .slider-1-date,
  .slider-1-label {
    font-size: 12px;
  }
}

@media (max-width: 350px) {
  .slider-1 {
    grid-template-columns: 1fr !important;
  }
  .slider-1-item:first-child .slider-1-title {
    font-size: .8rem;
    line-height: 1.3rem;
    max-height: 2.6rem;
  }
}

/* Loader */
.slider-loading:after {
  content: "";
  position: absolute;
  top: calc(50% - 20px);
  right: calc(50% - 20px);
  width: 40px;
  height: 40px;
  border: 4px solid #aaa;
  border-bottom-color: transparent;
  border-right-color: transparent;
  animation: .5s linear infinite hmslideloader;
  border-radius: 100%;
}

@keyframes hmslideloader {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}
</style>