.slider-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 50px auto;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.slides {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    max-height: 460px;
    border-radius: 16px;
    display: block;
    cursor: pointer;
    margin:auto;
}

/* --- Action ღილაკი --- */
.action-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
}

.action-menu {
    position: absolute;
    top: 45px;
    right: 12px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.action-menu a {
    border: none;
    background: none;
    padding: 10px;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    transition: background 0.2s;
    color: white;
}


/* --- ისრები --- */
.prev,
.next {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.prev {
    left: 15px;
}
.next {
    right: 15px;
}

/* --- თამბნეილები --- */
.thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.thumbnail.active {
    opacity: 1;
    border: 2px solid #007bff;
}

/* --- მოდალი --- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  
  background: rgba(0,0,0,0.8); /* <<< შავი ბექგრაუნდი */
  backdrop-filter: blur(2px);  /* სურვილისამებრ */
  
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity .3s ease;
}

.modal img {
    max-width: 80%;
    max-height: 80%;
    border-radius: 16px;
}

.modal .modal-prev,
.modal .modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
    border-radius: 50%;
    padding: 8px 14px;
}

.modal .modal-prev {
    left: 30px;
}
.modal .modal-next {
    right: 30px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}
#modal.open {
  opacity: 1;
}
