/* Базовые стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #222;
  color: #fff;
  font-family: 'SF Pro Display', 'SF Pro Text', 'San Francisco', 'Segoe UI', 'Arial', sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

.container {
  margin: 0 auto;
  padding: 0 32px 40px;
}

/* Заголовок страницы в стиле GTA */
.page-header {
  padding: 80px 0 40px 0;
  text-align: center;
}

.page-title {
  font-family: 'Impact', 'Arial Black', 'Helvetica Black', sans-serif;
  font-size: 128px;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 0.9;
  -webkit-background-clip: text;
  background-clip: text;
}

.flip-link {
  display: inline-block;
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  margin-top: 20px;
  padding: 8px 16px;
  border: 1px solid #ffffff;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.flip-link:hover {
  background: #ffffff;
  color: #000000;
}

/* Секция описания */
.about-text {
  max-width: 800px;
  margin: 0 auto 60px auto;
}

.about-text h1 {
  color: #afafaf;
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: 600;
}

.about-text p {
  font-size: 18px;
  line-height: 1.6;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: 400;
}

/* Masonry-стиль сетка как на stamps.vla.so */
.photo-grid {
  column-count: 2;
  column-gap: 20px;
  padding: 20px 0;
  margin-top: 2rem;
}

.gallery-item {
  text-decoration: none;
  color: inherit;
  display: block;
  break-inside: avoid;
  margin-bottom: 20px;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
}

.photo-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #1a1a1a;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}

.photo-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.photo-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.05);
  transition: background 0.3s ease;
  pointer-events: none;
}

.photo-item:hover::after {
  background: rgba(0, 0, 0, 0.15);
}

.photo-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Адаптивность */
@media (max-width: 1200px) {
  .page-title {
    font-size: 100px;
  }
  
  .photo-grid {
    column-gap: 16px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px 20px;
  }
  
  .page-header {
    padding: 60px 0 20px 0;
  }
  
  .page-title {
    font-size: 72px;
    letter-spacing: -1px;
  }
  
  .about-text {
    margin-bottom: 40px;
  }
  
  .about-text h1 {
    font-size: 20px;
  }
  
  .about-text p {
    font-size: 16px;
  }
  
  /* 1 колонка на планшетах */
  .photo-grid {
    column-count: 1;
    column-gap: 12px;
  }
  
  .gallery-item {
    margin-bottom: 12px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px 16px;
  }
  
  .page-title {
    font-size: 48px;
    letter-spacing: 0px;
  }
  
  /* 1 колонка на мобильных */
  .photo-grid {
    column-count: 1;
    column-gap: 10px;
  }
  
  .gallery-item {
    margin-bottom: 10px;
  }
}

/* Стили для PhotoSwipe */
.pswp {
  --pswp-bg: rgba(0, 0, 0, 0.9);
}

.pswp__bg {
  background: var(--pswp-bg);
}

.pswp__img {
  border-radius: 0 !important;
}

@media (hover: none) and (pointer: coarse) {
  .project-logo:hover .image,
  .project-info:has(.ssylka:hover) .project-logo .image {
    transform: none !important;
    filter: none !important;
    box-shadow: none !important;
  }
}



