.gallery-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}
.visually-hidden {
  position: relative;
    max-width: 1200px;
    margin: 25px auto;
    padding: 25px 35px;
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    line-height: 1.6;
    text-align: center;
    color: #3b4252;
    text-shadow: 0 2px 1px rgba(141, 161, 255, 0.3),1px 3px 2px rgba(192, 203, 255, 0.4),2px 5px 4px rgba(141, 161, 255, 0.25),-1px 4px 3px rgba(192, 203, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 5;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
}
.gallery-item {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background-color: #f7f7f7;
  aspect-ratio: 1280 / 720; /* Строгие пропорции 16:9 */
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}
.gallery-item a {
  display: block;
  width: 100%;
  height: 100%;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: #fff;
  padding: 12px;
  font-family: Arial, sans-serif;
  font-size: 13px;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}
/* ФРАНКЕНШТЕЙН 2.0 */
.seo-case-story.light-theme {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 25px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.seo-case-story.light-theme .case-container {
    width: 100%;
}
.seo-case-story.light-theme .case-title {
    font-size: clamp(1.25rem, 2.5vw, 1.7rem);
    color: #ff9900;
    margin: 0 0 25px 0;
    font-weight: 700;
    line-height: 1.35;
}
.seo-case-story.light-theme .case-text {
    background: #ffffff;
    padding: 10px 0;
}
.seo-case-story.light-theme .case-text p {
    font-size: clamp(1rem, 1.8vw, 1.1rem);
    color: #1f1f1f;
    line-height: 1.65;
    margin: 0 0 20px 0;
}
.seo-case-story.light-theme .case-brand-link {
    color: #ff9900;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px dashed rgba(255, 153, 0, 0.4);
    transition: all 0.2s ease;
}

.seo-case-story.light-theme .case-brand-link:hover {
    color: #cc7a00;
    border-bottom-style: solid;
    background: rgba(255, 153, 0, 0.05);
}
.seo-case-story.light-theme .case-quote {
    background: #f8f9fa;
    border-left: 4px solid #ff9900;
    padding: 20px;
    border-radius: 12px;
    font-style: italic;
    color: #4a4a4a;
    font-size: clamp(1rem, 1.8vw, 1.1rem);
    line-height: 1.65;
    margin: 25px 0;
}

/* frankenstein 2.0 */

#frankenstein {
    will-change: background-color, box-shadow;
    transform: translateZ(0);
    backface-visibility: hidden;
}