.gallery-albums-page {
  display: block;
  position: relative;
  padding-bottom: clamp(
    50px,
    calc(50px + (80 - 50) * ((100vw - 360px) / (768 - 360))),
    80px
  );
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-gallery .nav-list__link:hover {
  color: var(--text-dark);
}

@media (min-width: 768px) {
  .gallery-albums-page {
    padding-bottom: clamp(
      80px,
      calc(80px + (110 - 80) * ((100vw - 768px) / (1280 - 768))),
      110px
    );
  }
}

@media (min-width: 1280px) {
  .gallery-albums-page {
    padding-bottom: clamp(
      110px,
      calc(110px + (130 - 110) * ((100vw - 1280px) / (1920 - 1280))),
      130px
    );
  }
}

.gallery-albums-page__top {
  position: relative;
  height: clamp(
    118px,
    calc(118px + (158 - 118) * ((100vw - 360px) / (768 - 360))),
    158px
  );
  background-color: var(--bg-primary);
}

@media (min-width: 768px) {
  .gallery-albums-page__top {
    height: clamp(
      158px,
      calc(158px + (192 - 158) * ((100vw - 768px) / (1280 - 768))),
      192px
    );
  }
}

@media (min-width: 1280px) {
  .gallery-albums-page__top {
    height: clamp(
      192px,
      calc(192px + (230 - 192) * ((100vw - 1280px) / (1920 - 1280))),
      230px
    );
  }
}

@media (min-width: 1920px) {
  .gallery-albums-page__top {
    height: 230px;
  }
}

.gallery-albums-page__content {
  padding: 24px 20px 60px;
}

@media (min-width: 768px) {
  .gallery-albums-page__content {
    padding: 28px 20px 80px;
  }
}

@media (min-width: 1280px) {
  .gallery-albums-page__content {
    padding: 54px 60px 100px;
  }
}

@media (min-width: 1920px) {
  .gallery-albums-page__content {
    padding: 100px 322px 120px;
  }
}

.gallery-albums-page__container {
  max-width: 1280px;
  margin: 0 auto;
}

.gallery-albums-page__title {
  margin: 0 0 32px;
  color: var(--text-dark);
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  line-height: 110%;
}

@media (min-width: 768px) {
  .gallery-albums-page__title {
    margin-bottom: 34px;
    font-size: 32px;
  }
}

@media (min-width: 1280px) {
  .gallery-albums-page__title {
    margin-bottom: 42px;
    font-size: 40px;
  }
}

@media (min-width: 1920px) {
  .gallery-albums-page__title {
    margin-bottom: 70px;
    font-size: 48px;
  }
}

.gallery-albums-page__list {
  display: grid;
  gap: 42px;
}

@media (min-width: 768px) {
  .gallery-albums-page__list {
    gap: 48px;
  }
}

@media (min-width: 1280px) {
  .gallery-albums-page__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
  }
}

@media (min-width: 1920px) {
  .gallery-albums-page__list {
    gap: 60px;
  }
}

.gallery-album-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.gallery-album-card__title {
  margin: 0 0 24px;
  color: var(--color-primary);
  font-family: "Sprite Graffiti", var(--font-family-h1);
  font-size: 36px;
  font-weight: 400;
  line-height: 100%;
  text-align: center;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .gallery-album-card__title {
    margin-bottom: 32px;
    font-size: 48px;
  }
}

@media (min-width: 1280px) {
  .gallery-album-card__title {
    margin-bottom: 32px;
    font-size: 48px;
  }
}

@media (min-width: 1920px) {
  .gallery-album-card__title {
    margin-bottom: 40px;
    font-size: 64px;
  }
}

.gallery-album-card__images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  text-decoration: none;
}

.gallery-album-card__image {
  display: block;
  width: 100%;
  min-width: 0;
  object-fit: cover;
}

.gallery-album-card__image:first-child {
  grid-column: 1 / -1;
  height: clamp(
    236px,
    calc(236px + (360 - 236) * ((100vw - 360px) / (768 - 360))),
    360px
  );
  border-radius: 16px;
}

.gallery-album-card__image:not(:first-child) {
  height: clamp(
    72px,
    calc(72px + (126 - 72) * ((100vw - 360px) / (768 - 360))),
    126px
  );
  border-radius: 12px;
}

@media (min-width: 768px) {
  .gallery-album-card__images {
    gap: 20px;
  }

  .gallery-album-card__image:first-child {
    border-radius: 20px;
  }
}

@media (min-width: 1280px) {
  .gallery-album-card__image:first-child {
    height: clamp(
      338px,
      calc(338px + (360 - 338) * ((100vw - 1280px) / (1920 - 1280))),
      360px
    );
  }

  .gallery-album-card__image:not(:first-child) {
    height: clamp(
      124px,
      calc(124px + (130 - 124) * ((100vw - 1280px) / (1920 - 1280))),
      130px
    );
  }
}

@media (min-width: 1920px) {
  .gallery-album-card__images {
    gap: 24px;
  }

  .gallery-album-card__image:first-child {
    height: 360px;
  }

  .gallery-album-card__image:not(:first-child) {
    height: 130px;
    border-radius: 16px;
  }
}

.gallery-album-card__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin-top: 16px;
  border-radius: 12px;
  background-color: var(--color-primary);
  color: var(--text-light);
  font-family: var(--font-family-button);
  font-size: 14px;
  font-weight: 700;
  line-height: 120%;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

@media (min-width: 768px) {
  .gallery-album-card__button {
    min-height: 45px;
    margin-top: 24px;
  }
}

@media (min-width: 1280px) {
  .gallery-album-card__button {
    min-height: 59px;
  }
}

@media (min-width: 1920px) {
  .gallery-album-card__button {
    min-height: 60px;
    font-size: 16px;
  }
}

.gallery-album-card__button:hover {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.album-page {
  display: block;
  position: relative;
  padding-bottom: clamp(
    50px,
    calc(50px + (80 - 50) * ((100vw - 360px) / (768 - 360))),
    80px
  );
  background-color: var(--bg-light);
  color: var(--text-dark);
}

@media (min-width: 768px) {
  .album-page {
    padding-bottom: clamp(
      80px,
      calc(80px + (110 - 80) * ((100vw - 768px) / (1280 - 768))),
      110px
    );
  }
}

@media (min-width: 1280px) {
  .album-page {
    padding-bottom: clamp(
      110px,
      calc(110px + (130 - 110) * ((100vw - 1280px) / (1920 - 1280))),
      130px
    );
  }
}

.album-page__top {
  position: relative;
  height: clamp(
    118px,
    calc(118px + (158 - 118) * ((100vw - 360px) / (768 - 360))),
    158px
  );
  background-color: var(--bg-primary);
}

@media (min-width: 768px) {
  .album-page__top {
    height: clamp(
      158px,
      calc(158px + (192 - 158) * ((100vw - 768px) / (1280 - 768))),
      192px
    );
  }
}

@media (min-width: 1280px) {
  .album-page__top {
    height: clamp(
      192px,
      calc(192px + (230 - 192) * ((100vw - 1280px) / (1920 - 1280))),
      230px
    );
  }
}

@media (min-width: 1920px) {
  .album-page__top {
    height: 230px;
  }
}

.album-page__content {
  padding: 28px 20px 60px;
}

@media (min-width: 768px) {
  .album-page__content {
    padding: 66px 20px 80px;
  }
}

@media (min-width: 1280px) {
  .album-page__content {
    padding: 90px 60px 100px;
  }
}

@media (min-width: 1920px) {
  .album-page__content {
    padding: 100px 322px 120px;
  }
}

.album-page__container {
  max-width: 1280px;
  margin: 0 auto;
}

.album-page__title {
  margin: 0 0 38px;
  color: var(--color-primary);
  font-family: "Sprite Graffiti", var(--font-family-h1);
  font-size: 42px;
  font-weight: 400;
  line-height: 100%;
  text-align: center;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .album-page__title {
    margin-bottom: 54px;
    font-size: 64px;
  }
}

@media (min-width: 1280px) {
  .album-page__title {
    margin-bottom: 58px;
    font-size: 76px;
  }
}

@media (min-width: 1920px) {
  .album-page__title {
    margin-bottom: 62px;
    font-size: 96px;
  }
}

.album-page__section {
  display: block;
}

.album-page__section + .album-page__section {
  margin-top: 58px;
}

@media (min-width: 768px) {
  .album-page__section + .album-page__section {
    margin-top: 88px;
  }
}

@media (min-width: 1280px) {
  .album-page__section + .album-page__section {
    margin-top: 98px;
  }
}

.album-page__section-title {
  margin: 0 0 24px;
  color: var(--text-dark);
  font-size: 30px;
  font-weight: 800;
  line-height: 110%;
  text-align: center;
}

@media (min-width: 768px) {
  .album-page__section-title {
    margin-bottom: 42px;
    font-size: 36px;
  }
}

@media (min-width: 1280px) {
  .album-page__section-title {
    margin-bottom: 44px;
    font-size: 40px;
  }
}

@media (min-width: 1920px) {
  .album-page__section-title {
    margin-bottom: 50px;
    font-size: 44px;
  }
}

.album-page__videos {
  display: grid;
  gap: 22px;
}

@media (min-width: 768px) {
  .album-page__videos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (min-width: 1280px) {
  .album-page__videos {
    gap: 28px;
  }
}

.album-video-card {
  position: relative;
  display: block;
  min-height: 0;
  border-radius: 18px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .album-video-card {
    border-radius: 20px;
  }
}

.album-video-card__image {
  display: block;
  width: 100%;
  height: clamp(
    178px,
    calc(178px + (270 - 178) * ((100vw - 360px) / (768 - 360))),
    270px
  );
  object-fit: cover;
}

@media (min-width: 768px) {
  .album-video-card__image {
    height: clamp(
      202px,
      calc(202px + (322 - 202) * ((100vw - 768px) / (1280 - 768))),
      322px
    );
  }
}

@media (min-width: 1280px) {
  .album-video-card__image {
    height: clamp(
      322px,
      calc(322px + (360 - 322) * ((100vw - 1280px) / (1920 - 1280))),
      360px
    );
  }
}

.album-video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
}

@media (min-width: 1280px) {
  .album-video-card__play {
    width: 80px;
    height: 80px;
  }
}

.album-video-card__play img {
  width: 28px;
  height: auto;
  margin-left: 4px;
}

.album-video-card:hover .album-video-card__play {
  background-color: rgba(255, 255, 255, 0.7);
  transform: translate(-50%, -50%) scale(1.08);
}

@media (min-width: 1280px) {
  .album-video-card__play img {
    width: 36px;
  }
}

.album-page__photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
}

@media (min-width: 768px) {
  .album-page__photos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (min-width: 1280px) {
  .album-page__photos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 28px;
  }
}

.album-photo-card {
  display: block;
  border-radius: 10px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .album-photo-card {
    border-radius: 16px;
  }
}

.album-photo-card__image {
  display: block;
  width: 100%;
  height: clamp(
    116px,
    calc(116px + (220 - 116) * ((100vw - 360px) / (768 - 360))),
    220px
  );
  object-fit: cover;
}

@media (min-width: 768px) {
  .album-photo-card__image {
    height: clamp(
      176px,
      calc(176px + (193 - 176) * ((100vw - 768px) / (1280 - 768))),
      193px
    );
  }
}

@media (min-width: 1280px) {
  .album-photo-card__image {
    height: clamp(
      193px,
      calc(193px + (200 - 193) * ((100vw - 1280px) / (1920 - 1280))),
      200px
    );
  }
}

.album-page__empty {
  color: #969696;
  font-family: var(--font-family-body);
  font-size: 16px;
  text-align: center;
}

.album-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 36px;
}

@media (min-width: 768px) {
  .album-pagination {
    gap: 24px;
    margin-top: 44px;
  }
}

.album-pagination__item,
.album-pagination__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 48px;
  color: var(--text-dark);
  font-family: var(--font-family-button);
  font-size: 16px;
  font-weight: 700;
  line-height: 120%;
}

.album-pagination__item--active {
  width: 48px;
  border-radius: 14px;
  background-color: var(--color-primary);
  color: var(--text-light);
}

.album-pagination__next {
  position: relative;
  display: block;
  width: 34px;
  height: 48px;
}

.album-pagination__next::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 13px;
  border-top: 2px solid var(--text-dark);
  border-right: 2px solid var(--text-dark);
  content: "";
  transform: translate(-70%, -50%) rotate(45deg);
}

.album-pagination__prev::before {
  transform: translate(-30%, -50%) rotate(-135deg);
}

.album-pagination__next--disabled {
  opacity: 0.35;
}
