*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body{
  background-color: #EAEAEA;
  color: rgb(47, 47, 47);
  font-family: 'Montserrat', sans-serif;
}
a {
  color: rgb(47, 47, 47);
  text-decoration: none;
  font-size: 24px;
  font-family: 'Poppins', sans-serif;
}
.add-post {
  margin-top: 50px;
  margin-left: 100px;
  margin-right: 100px;
}
.add-post__text{
    font-size: 30px;
}
.add-post__button {
  background-color: #d9d9d9;
  width: 100%;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
 border: none;
}

/* Основные стили витрины */
.showcase {
  padding: 40px 0;
}

.showcase__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.showcase__header {
  margin-bottom: 30px;
}

.showcase__button {
  background: none;
  border: none;
  font-size: 24px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.showcase__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.showcase__item {
  overflow: hidden;
  transition: transform 0.3s ease;
}

.showcase__item:hover {
  transform: translateY(-5px);
}

/* Стили для изображений */
.showcase__image-link {
  display: block;
  position: relative;
  overflow: hidden;
}

.showcase__image {
  width: 250px;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.showcase__image-link:hover .showcase__image {
  transform: scale(1.03);
}

.showcase__stats {
  display: flex;
  justify-content: space-between;
  padding: 12px 15px;
}

.showcase__stat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
}

.showcase__icon {
  width: 16px;
  height: 16px;
}

/* ============================================
   Gallery Page Styles
   ============================================ */
.gallery-page {
  padding: 40px 0 60px;
}

.gallery-page__header {
  text-align: center;
  margin-bottom: 40px;
}

.gallery-page__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #2f2f2f;
  margin: 0 0 10px;
}

.gallery-page__subtitle {
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  color: #6b7280;
  margin: 0;
}

/* Filters */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
}

.gallery-filter {
  margin: 0;
}

.gallery-filter a {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.gallery-filter a:hover {
  background-color: rgba(172, 16, 234, 0.1);
  color: #ac10ea;
}

.gallery-filter--active a {
  background-color: #ac10ea;
  color: #fff;
}

.gallery-filter--active a:hover {
  background-color: #530493;
  color: #fff;
}

/* Grid */
.gallery-grid--large {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.gallery-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.gallery-card__image {
  position: relative;
  overflow: hidden;
}

.gallery-card__image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-card__image img {
  transform: scale(1.05);
}

.gallery-card__content {
  padding: 15px;
}

.gallery-card__title {
  margin: 0 0 8px;
}

.gallery-card__title a {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #2f2f2f;
  text-decoration: none;
  transition: color 0.3s ease;
}

.gallery-card__title a:hover {
  color: #ac10ea;
}

.gallery-card__author {
  margin: 0;
}

.gallery-card__author a {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.3s ease;
}

.gallery-card__author a:hover {
  color: #ac10ea;
}

.gallery-card__stats {
  display: flex;
  gap: 15px;
  padding: 12px 15px;
  border-top: 1px solid #f3f4f6;
}

.gallery-card__stat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.gallery-card__stat img {
  width: 16px;
  height: 16px;
}

/* Empty state */
.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
}

.gallery-empty__text {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  color: #6b7280;
  margin: 0 0 20px;
}

.gallery-empty__cta a {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #ac10ea;
  text-decoration: none;
}

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

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

.pagination-item {
  margin: 0;
}

.pagination-item a {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #ac10ea;
  text-decoration: none;
  padding: 10px 20px;
  border: 1px solid #ac10ea;
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination-item a:hover {
  background-color: #ac10ea;
  color: #fff;
}

.pagination-item a.disabled {
  color: #d1d5db;
  border-color: #d1d5db;
  pointer-events: none;
}

.pagination-info {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-page__title {
    font-size: 28px;
  }

  .gallery-filters {
    gap: 15px;
    flex-wrap: wrap;
  }

  .gallery-filter a {
    font-size: 14px;
    padding: 8px 16px;
  }

  .gallery-grid--large {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }

  .gallery-card__image img {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .gallery-page {
    padding: 20px 0 40px;
  }

  .gallery-page__title {
    font-size: 24px;
  }

  .gallery-pagination {
    gap: 15px;
  }

  .pagination-item a {
    font-size: 14px;
    padding: 8px 15px;
  }
}
