/* ==========================================================================
   MANDCO - Qalereya Bölməsi (Gallery Component CSS)
   ========================================================================== */

.gallery-section {
  padding: 80px 20px; 
  background: linear-gradient(rgba(95, 120, 180, 0.85), rgba(15, 23, 42, 0.95)), 
  url("../../images/back.png") no-repeat center center / cover;
  background-attachment: fixed;
  position: relative;
}

.gallery-section h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #ffffff, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gallery-wrapper {
  position: relative;
}

.gallery-slider {
  display: flex;
  gap: 25px;
  overflow: hidden;
  scroll-behavior: smooth;
  padding: 15px 0;
}

.gallery-slider img {
  width: 360px;
  height: 250px;
  object-fit: cover;
  border-radius: 16px;
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gallery-slider img:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 55px;
  height: 55px;
  border: none;
  border-radius: 50%;
  background: #F80505;
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.gallery-btn:hover { 
  background: #c40404;
  box-shadow: 0 6px 15px rgba(248, 5, 5, 0.4);
}

.gallery-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.gallery-btn.prev { left: -30px; }
.gallery-btn.next { right: -30px; }

@media (max-width: 1200px) {
  .gallery-btn.prev { left: -10px; }
  .gallery-btn.next { right: -10px; }
}

@media (max-width: 992px) { 
  .gallery-section { padding: 80px 20px; }
  .gallery-section h2 { font-size: 38px; }
  .gallery-slider img { 
    width: calc(33.33% - 16px); 
    min-width: calc(33.33% - 16px); 
  } 
}

@media (max-width: 768px) { 
  .gallery-section h2 { font-size: 32px; }
  .gallery-slider img { 
    width: calc(50% - 12px); 
    min-width: calc(50% - 12px); 
    height: 200px;
  } 
}

@media (max-width: 500px) { 
  .gallery-section { padding: 60px 15px; }
  .gallery-section h2 { font-size: 28px; margin-bottom: 30px; }
  .gallery-btn { display: none; }
  .gallery-slider { overflow-x: auto; } 
  .gallery-slider img { 
    width: 100%; 
    min-width: 100%; 
    height: 220px;
  } 
}