@charset "utf-8";

body {
  margin: 0;
  color: #17375f;
  background: #f4f8fc;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

.gallery-public {
  min-height: calc(100vh - 80px);
  padding: 0 0 72px;
  background: linear-gradient(180deg, #eaf4fd 0, #f7faff 350px, #f4f8fc 100%);
}

.gallery-hero {
  position: relative;
  overflow: hidden;
  padding: 56px max(24px, calc((100% - 1180px) / 2)) 44px;
  color: #fff;
  background: linear-gradient(115deg, #092b70, #1165c7);
  text-align: center;
}

.gallery-hero::after {
  position: absolute;
  top: -155px;
  right: max(-64px, calc((100% - 1280px) / 2));
  width: 390px;
  height: 390px;
  border: 62px solid rgba(255, 255, 255, .09);
  border-radius: 50%;
  content: "";
}

.gallery-hero > * {
  position: relative;
  z-index: 1;
}

.gallery-hero > p {
  margin: 0 0 10px;
  color: #c6eaff;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .13em;
}

.gallery-hero h1 {
  max-width: 780px;
  margin: 0 auto;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 780;
  letter-spacing: -.05em;
  line-height: 1.12;
}

.gallery-hero > span {
  display: block;
  max-width: 660px;
  margin: 15px auto 0;
  color: #e5f4ff;
  font-size: 1rem;
  line-height: 1.6;
}

.gallery-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.gallery-jump a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  color: #fff;
  background: rgba(227, 245, 255, .1);
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}

.gallery-jump a:hover {
  background: rgba(227, 245, 255, .21);
  transform: translateY(-2px);
}

.gallery-section,
.gallery-setup-notice {
  width: min(1180px, calc(100% - 42px));
  margin: 42px auto 0;
}

.gallery-section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.gallery-section-icon,
.gallery-template-icon {
  width: 48px;
  height: 48px;
  display: grid;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, #149ee1, #1768d6);
  box-shadow: 0 9px 18px rgba(24, 102, 203, .23);
  font-size: 1.25rem;
}

.gallery-section-icon.is-violet {
  background: linear-gradient(135deg, #8a2be2, #5b36d7);
}

.gallery-section-icon.is-amber,
.gallery-template-icon {
  background: linear-gradient(135deg, #f09a20, #d86035);
}

.gallery-section-heading p {
  margin: 0 0 3px;
  color: #4383be;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.gallery-section-heading h2 {
  margin: 0;
  color: #163d72;
  font-size: 1.55rem;
  font-weight: 780;
  letter-spacing: -.035em;
}

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

.gallery-album-card,
.gallery-video-card,
.gallery-template-card {
  overflow: hidden;
  border: 1px solid #dbe7f3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 9px 23px rgba(20, 59, 108, .08);
}

.gallery-album-card {
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.gallery-album-card:hover,
.gallery-template-card:hover {
  box-shadow: 0 15px 30px rgba(20, 90, 190, .17);
  transform: translateY(-4px);
}

.gallery-album-cover {
  position: relative;
  height: 190px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #d9efff;
  background: linear-gradient(135deg, #173e82, #1681d4);
  font-size: 3rem;
}

.gallery-album-cover::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(2, 22, 66, .46));
  content: "";
}

.gallery-album-cover img,
.gallery-video-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-album-cover span {
  position: absolute;
  z-index: 1;
  right: 11px;
  bottom: 11px;
  padding: 6px 8px;
  border-radius: 7px;
  color: #fff;
  background: rgba(4, 27, 75, .7);
  font-size: .73rem;
  font-weight: 700;
}

.gallery-album-copy {
  padding: 17px 17px 16px;
}

.gallery-album-copy h3,
.gallery-video-card h3,
.gallery-template-card h3 {
  margin: 0;
  color: #193f73;
  font-size: 1rem;
  font-weight: 770;
  line-height: 1.38;
}

.gallery-album-copy small {
  display: block;
  margin-top: 7px;
  color: #5780ac;
  font-size: .75rem;
}

.gallery-album-copy p,
.gallery-video-card p,
.gallery-template-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 9px 0 14px;
  color: #607d9d;
  font-size: .83rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.gallery-album-copy strong,
.gallery-template-card small {
  color: #1268ca;
  font-size: .78rem;
}

.gallery-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.gallery-video-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: 165px;
}

.gallery-video-cover {
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #7635c8, #175fce);
  font-size: 3rem;
}

.gallery-video-card > div:last-child {
  padding: 20px;
}

.gallery-video-card p {
  margin-bottom: 12px;
}

.gallery-video-card a {
  color: #1268ca;
  font-size: .8rem;
  font-weight: 750;
  text-decoration: none;
}

.gallery-video-card a:hover {
  text-decoration: underline;
}

.gallery-pending {
  color: #976005;
  font-size: .78rem;
}

.gallery-template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.gallery-template-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 19px;
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.gallery-template-card p {
  margin-bottom: 9px;
}

.gallery-template-icon {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  border-radius: 13px;
  box-shadow: 0 8px 16px rgba(197, 92, 34, .2);
  font-size: 1.05rem;
}

.gallery-empty,
.gallery-setup-notice {
  min-height: 188px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 26px;
  border: 1px dashed #c6d8ea;
  border-radius: 17px;
  color: #6d88a4;
  background: rgba(255, 255, 255, .65);
  text-align: center;
}

.gallery-empty > i {
  margin-bottom: 12px;
  color: #6faee4;
  font-size: 2.2rem;
}

.gallery-empty h3 {
  margin: 0;
  color: #315a8a;
  font-size: 1rem;
}

.gallery-empty p {
  max-width: 470px;
  margin: 8px 0 0;
  font-size: .84rem;
  line-height: 1.55;
}

.gallery-setup-notice {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 13px;
  padding: 15px 18px;
  border-style: solid;
  color: #835b12;
  background: #fff7e5;
  text-align: left;
}

.gallery-setup-notice > i {
  font-size: 1.45rem;
}

.gallery-setup-notice strong,
.gallery-setup-notice span {
  display: block;
}

.gallery-setup-notice span {
  margin-top: 3px;
  font-size: .82rem;
}

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

  .gallery-video-grid,
  .gallery-template-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .gallery-hero {
    padding: 40px 18px 33px;
  }

  .gallery-hero > span {
    font-size: .9rem;
  }

  .gallery-jump {
    gap: 7px;
  }

  .gallery-jump a {
    padding: 8px 10px;
    font-size: .72rem;
  }

  .gallery-section,
  .gallery-setup-notice {
    width: min(100% - 28px, 480px);
    margin-top: 28px;
  }

  .gallery-section-heading h2 {
    font-size: 1.28rem;
  }

  .gallery-section-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 13px;
    font-size: 1.05rem;
  }

  .gallery-album-grid {
    grid-template-columns: 1fr;
  }

  .gallery-album-cover {
    height: 175px;
  }

  .gallery-video-card {
    grid-template-columns: 124px minmax(0, 1fr);
    min-height: 135px;
  }

  .gallery-video-cover {
    font-size: 2.2rem;
  }

  .gallery-video-card > div:last-child {
    padding: 15px;
  }

  .gallery-template-card {
    padding: 15px;
  }
}
