/* Gallery Styles */
.gall {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 100%;
    margin: 30px;
    text-align: center;
}

.gall img {
    width: 100%;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.gall img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 22px #333;
}

/* Lightbox Styles */
.ligtbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
}

.ligtbox img {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
}

/* Close Button */
.clos {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* Navigation Buttons */
.pre, .nex {
    position: absolute;
    top: 50%;
    width: 5%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 30px;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
}

.pre {
    left: 10px;
}

.nex {
    right: 10px;
}

.pre:hover, .nex:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* RESPONSIVE DESIGN */

/* Tablets (width 600px - 900px) */
@media (max-width: 900px) {
    .gall {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    .ligtbox img {
        max-width: 90%;
        max-height: 90%;
    }
}

/* Mobile Devices (width < 600px) */
@media (max-width: 600px) {
    .gall {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 40px;
        padding: 10px;
    }
    .pre, .nex {
        font-size: 25px;
        padding: 8px 12px;
        width: 10%;
    }
    .clos {
        font-size: 30px;
    }
    .ligtbox img {
        max-width: 95%;
        max-height: 95%;
    }
}

/* Slider styles */
.slides-wraper {
  margin: auto;
  overflow: hidden;
}

.slides-containr {
  padding: 0 10px;
  width: 50%;
}

.slidr-list {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  overflow: hidden;
  transition: 1s;
  max-height: calc(100vh - 80px);
}

.slidr-item {
  background-color: #bdbdbd;
  margin: 0 16px -4px 0;
  min-height: 200px;
}

.slidr-item img {
  width: 100%;
  height: 200px;
}

.slidr-arrows {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.slidr-arrow-prev,
.slidr-arrow-next {
  border: none;
  background-color: #eeeeee;
  color: #212121;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
}

.slidr-arrow-prev:hover,
.slidr-arrow-next:hover {
  background-color: #1aa3ff;
  color: #fff;
}
