.gallery-section {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.gallery-header {
  text-align: center;
  margin-bottom: 40px;
}

.gallery-header h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 10px;
}

.gallery-header p {
  font-size: 1.2rem;
  color: #666;
}

.album-selection {
  margin-bottom: 40px;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.album-selection h3 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

.album-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  justify-content: center;
  align-items: stretch;
  margin: 0 auto;
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
}

.album-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  border: 2px solid #ddd;
  border-radius: 8px;
  text-decoration: none;
  color: #fff !important;
  transition: all 0.18s ease;
  font-weight: 600;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.album-item i {
  flex: 0 0 auto;
}

.album-item.active {
  background: #24648a;
  color: #fff;
  border-color: #164058;
}

.gallery-slider-section h3 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 20px;
  text-align: left;
}

#gallery-slider .item {
  text-align: center;
}

#gallery-slider .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.gallery-caption {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
}

.album-search {
  position: relative;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.album-search-input {
  flex: 1;
  padding-right: 40px;
  border-radius: 8px;
  border: 2px solid #ddd;
  padding: 10px 15px;
  font-size: 16px;
}

.clear-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  color: #999;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: color 0.2s;
}

.clear-btn:hover {
  color: #333;
}

@media (max-width: 768px) {
  .gallery-header h2 {
    font-size: 2rem;
  }
  
  .album-list {
    grid-template-columns: 1fr;
    gap: 10px;
    max-height: 40vh;
    overflow-y: auto;
    padding-right: 8px;
  }

  .album-list::-webkit-scrollbar {
    width: 8px;
  }

  .album-list::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.12);
    border-radius: 8px;
  }

  .album-item {
    justify-content: flex-start;
    padding: 12px 14px;
  }

  .album-search {
    margin-bottom: 15px;
  }

  .album-search-input {
    font-size: 14px;
    padding: 8px 12px;
    padding-right: 35px;
  }

  .clear-btn {
    font-size: 18px;
    right: 8px;
  }
}