.awdg-gallery-index,
.awdg-gallery-album {
  color: #111827;
  margin: 0 auto;
  max-width: 1180px;
  padding: 40px 18px;
}

.awdg-gallery-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.awdg-gallery-toolbar input {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 15px;
  min-height: 44px;
  padding: 10px 12px;
  width: min(100%, 320px);
}

.awdg-album-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.awdg-album-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: inherit;
  display: block;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.awdg-album-card:hover,
.awdg-album-card:focus-visible {
  border-color: #1d4ed8;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
  transform: translateY(-2px);
}

.awdg-album-card-media {
  aspect-ratio: 4 / 3;
  background: #f3f4f6;
  display: block;
  overflow: hidden;
  position: relative;
}

.awdg-album-card-media img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
  width: 100%;
}

.awdg-album-card:hover img {
  transform: scale(1.04);
}

.awdg-photo-count {
  background: #1d4ed8;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  position: absolute;
  right: 12px;
  top: 12px;
}

.awdg-album-card-body {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.awdg-album-card-body strong {
  font-size: 19px;
  line-height: 1.2;
}

.awdg-album-card-body small,
.awdg-album-meta {
  color: #6b7280;
  font-size: 14px;
}

.awdg-album-hero {
  align-items: center;
  background: linear-gradient(180deg, rgba(7, 19, 38, 0.32), rgba(7, 19, 38, 0.82));
  background-position: center;
  background-size: cover;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
  min-height: 420px;
  padding: 72px 22px;
}

.awdg-album-header {
  text-align: center;
}

.awdg-kicker {
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.awdg-album-header h2 {
  color: #fff;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  margin: 0 0 12px;
}

.awdg-album-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.awdg-album-hero .awdg-album-meta,
.awdg-album-hero .awdg-kicker {
  color: rgba(255, 255, 255, 0.82);
}

.awdg-album-meta span:not(:last-child)::after {
  background: #1d4ed8;
  border-radius: 999px;
  content: "";
  display: inline-block;
  height: 4px;
  margin-left: 10px;
  vertical-align: middle;
  width: 4px;
}

.awdg-photo-grid {
  column-count: 4;
  column-gap: 12px;
}

.awdg-photo-tile {
  appearance: none;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  break-inside: avoid;
  cursor: zoom-in;
  display: block;
  margin: 0 0 12px;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-align: left;
  width: 100%;
}

.awdg-photo-tile img {
  display: block;
  height: auto;
  transition: transform 420ms ease;
  width: 100%;
}

.awdg-photo-tile:hover img,
.awdg-photo-tile:focus-visible img {
  transform: scale(1.04);
}

.awdg-photo-tile span {
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  bottom: 0;
  color: #fff;
  font-size: 13px;
  left: 0;
  opacity: 0;
  padding: 30px 12px 10px;
  position: absolute;
  right: 0;
  transition: opacity 180ms ease;
}

.awdg-photo-tile:hover span,
.awdg-photo-tile:focus-visible span {
  opacity: 1;
}

.awdg-load-more {
  background: #1d4ed8;
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: block;
  font-weight: 800;
  margin: 28px auto 0;
  min-height: 44px;
  padding: 11px 18px;
}

.awdg-load-more:disabled {
  cursor: wait;
  opacity: 0.6;
}

.awdg-lightbox {
  align-items: center;
  background: rgba(0, 0, 0, 0.94);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 68px 72px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 100000;
}

.awdg-lightbox[hidden] {
  display: none;
}

.awdg-lightbox img {
  border-radius: 8px;
  max-height: 82vh;
  max-width: 88vw;
  object-fit: contain;
}

.awdg-lightbox button,
.awdg-lightbox-download {
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 30px;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  position: absolute;
  text-decoration: none;
}

.awdg-lightbox button:hover,
.awdg-lightbox-download:hover {
  background: #1d4ed8;
}

.awdg-lightbox-close {
  right: 24px;
  top: 24px;
}

.awdg-lightbox-prev {
  left: 24px;
}

.awdg-lightbox-next {
  right: 24px;
}

.awdg-lightbox p {
  bottom: 28px;
  color: #fff;
  font-size: 15px;
  left: 50%;
  margin: 0;
  position: absolute;
  transform: translateX(-50%);
}

.awdg-lightbox-download {
  bottom: 22px;
  font-size: 13px;
  font-weight: 800;
  padding: 0 16px;
  right: 24px;
}

.awdg-lightbox-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .awdg-album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .awdg-photo-grid {
    column-count: 3;
  }
}

@media (max-width: 640px) {
  .awdg-album-grid {
    grid-template-columns: 1fr;
  }

  .awdg-photo-grid {
    column-count: 2;
  }

  .awdg-lightbox {
    padding: 64px 14px;
  }

  .awdg-lightbox-prev {
    left: 10px;
  }

  .awdg-lightbox-next {
    right: 10px;
  }
}
