:root {
  --sg-gap: 15px;
}

.simple-gallery-wrapper {
  margin-bottom: 30px;
}

.simple-gallery-grid {
  display: grid;
  gap: var(--sg-gap);
  grid-template-columns: repeat(var(--sg-cols-mobile, 2), 1fr);
}

@media (min-width: 768px) {
  .simple-gallery-grid {
    grid-template-columns: repeat(var(--sg-cols-tablet, 3), 1fr);
  }
}

@media (min-width: 1024px) {
  .simple-gallery-grid {
    grid-template-columns: repeat(var(--sg-cols-desktop, 4), 1fr);
  }
}

.simple-gallery-item {
  overflow: hidden;
}

.simple-gallery-link {
  display: block;
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: #f0f0f0;
  transition: transform 0.3s ease;
}

.simple-gallery-image-inner {
  position: relative;
  width: 100%;
}

.sg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Aspect Ratios */
.sg-ratio-square .simple-gallery-image-inner {
  padding-top: 100%;
}

.sg-ratio-rectangle .simple-gallery-image-inner {
  padding-top: 75%; /* 4:3 */
}

/* Pagination */
.simple-gallery-pagination {
  margin-top: 30px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.simple-gallery-pagination .page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  text-decoration: none;
  color: #333;
  border-radius: 50%;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
}

.simple-gallery-pagination .page-numbers:hover,
.simple-gallery-pagination .page-numbers.current {
  background: #006699; /* Blue from the image */
  color: #fff;
  border-color: #006699;
}

/* List / Album View */
.simple-gallery-grid-list {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.simple-gallery-album-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.simple-gallery-album-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border: 1px solid #eee;
}

.simple-gallery-album-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.simple-gallery-album-cover {
  position: relative;
  width: 100%;
  padding-top: 65%; /* Slightly more horizontal */
  background: #f5f5f5;
  overflow: hidden;
}

.sg-album-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.simple-gallery-album-card:hover .sg-album-img {
  transform: scale(1.05);
}

.sg-album-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  z-index: 2;
}

.sg-album-info {
  padding: 10px;
  text-align: center;
}

.sg-album-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #006699; /* Blue shade matching the image */
  text-transform: capitalize;
}
