/* ============================================================
   Gallery List Page
   ============================================================ */
.gallery-list-page {
  min-height: 60vh;
}
/* Album Card */
.album-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
  transition: transform .25s, box-shadow .25s;
}
.album-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .16);
}
.album-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.album-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #f1f5f9;
}
.album-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.album-card:hover .album-card-image img {
  transform: scale(1.06);
}
.album-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s;
}
.album-card:hover .album-overlay {
  background: rgba(0, 0, 0, .4);
}
.album-view-icon {
  font-size: 2rem;
  color: #fff;
  opacity: 0;
  transition: opacity .3s;
}
.album-card:hover .album-view-icon {
  opacity: 1;
}
.album-card-body {
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 8.8rem;
}
.album-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 .4rem;
}
.album-description {
  font-size: .88rem;
  color: #6b7280;
  margin: 0 0 .6rem;
}
.album-date {
  font-size: .8rem;
  color: #9ca3af;
}
.no-albums-found {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  color: #9ca3af;
}
.no-albums-icon {
  font-size: 3rem;
}
.album-header {
  padding: 2.5rem 1rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
}
.album-header .album-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 .5rem;
}
.album-header .album-description {
  font-size: 1rem;
  color: #6b7280;
  margin: 0 0 .8rem;
}
.album-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: .9rem;
  color: #9ca3af;
  flex-wrap: wrap;
}
/* View mode toggle buttons */
.album-view-toggle {
  display: flex;
  gap: .35rem;
  align-items: center;
}
.btn-view-mode {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1.5px solid #d1d5db;
  background: #fff;
  color: #6b7280;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
  padding: 0;
}
.btn-view-mode svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}
.btn-view-mode:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
  color: #374151;
}
.btn-view-mode.active {
  background: var(--color-primary, #2563eb);
  border-color: var(--color-primary, #2563eb);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, .3);
}
.gallery-slideshow-section {
  padding: 2rem 1rem 3rem;
}
/* ── Masonry Grid Section ──────────────────────────────────── */
.gallery-grid-section {
  padding: 2rem 1rem 3rem;
}
.gallery-masonry-grid {
  columns: 4 220px;
  column-gap: 1rem;
}
@media (max-width: 900px) {
  .gallery-masonry-grid {
    columns: 3 180px;
  }
}
@media (max-width: 600px) {
  .gallery-masonry-grid {
    columns: 2 140px;
  }
}
@media (max-width: 380px) {
  .gallery-masonry-grid {
    columns: 1;
  }
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  background: #f1f5f9;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
  transition: box-shadow .25s, transform .25s;
}
.masonry-item:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
  transform: translateY(-3px);
}
.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  pointer-events: none;
  transition: transform .4s ease;
}
.masonry-item:hover img {
  transform: scale(1.04);
}
.masonry-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: background .25s;
}
.masonry-item:hover .masonry-overlay {
  background: rgba(0, 0, 0, .38);
}
.masonry-zoom-icon {
  font-size: 1.8rem;
  color: #fff;
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.masonry-zoom-icon::before {
  content: '\e986';
  font-family: icomoon;
}
.masonry-item:hover .masonry-zoom-icon {
  opacity: 1;
}
/* ============================================================
   Widget – Gallery Album
   ============================================================ */
.widget-gallery-albums {
  padding: .5rem 0;
}
.widget-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .6rem;
}
.widget-album-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: box-shadow .2s, transform .2s;
}
.widget-album-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
  transform: translateY(-2px);
}
.widget-album-img {
  aspect-ratio: 4/3;
  background: #f1f5f9;
  overflow: hidden;
}
.widget-album-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.widget-album-card:hover .widget-album-img img {
  transform: scale(1.06);
}
.widget-album-info {
  padding: .4rem .5rem;
}
.widget-album-title {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.widget-album-desc {
  display: block;
  font-size: .74rem;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}