body.fullscreen-video-open footer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

footer {
  width: 100%;
  background: var(--rcqrc-primary);
  color: var(--rcqrc-title);
  padding: 1rem 0 0;
  font-family: arial, sans-serif;
  border: 2px solid #b0b0b0;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 0 0;
  max-width: 45vw;
  margin: 0 auto;
}

.footer-section {
  margin-bottom: 0;
}

.footer-section h3 {
  color: #dbd2d0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  border-bottom: 2px solid #b0b0b0;
  padding-bottom: 0.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: var(--rcqrc-title);
  font-size: 2rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #1f8ba6;
}

.contact p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
  color: var(--rcqrc-title);
}

.footer-mail-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(219, 210, 208, 0.45);
  transition: border-color 0.18s ease, opacity 0.18s ease;
}

.footer-mail-link:hover,
.footer-mail-link:focus-visible {
  opacity: 0.82;
  border-bottom-color: rgba(219, 210, 208, 0.82);
}

.ai-art-credit {
  font-size: 1rem;
}

.ai-art-credit a {
  color: #25adcf;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.3rem;
}

.ai-art-credit a:hover {
  text-decoration: underline;
}

.civitai-logo {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  text-align: center;
  padding: 1rem;
  background: var(--rcqrc-footer-dark);
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--rcqrc-title);
}

@media (max-width: 1100px) {
  .footer-columns {
    max-width: min(88vw, 52rem);
  }
}

@media (max-width: 768px) {
  .footer-columns {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    width: min(90vw, 20rem);
    max-width: min(90vw, 20rem);
    margin-inline: auto;
    padding-inline: 0;
    text-align: center;
  }

  .footer-section {
    width: 100%;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .footer-section h3,
  .ai-art-credit {
    text-align: center;
  }

  .footer-section h3 {
    margin-bottom: 0.2rem;
    padding-bottom: 0.2rem;
  }

  .contact p,
  .ai-art-credit p,
  .ai-art-credit a {
    width: fit-content;
    margin-inline: auto;
  }

  .social-links,
  .contact p,
  .ai-art-credit a {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  footer {
    padding-top: 0.85rem;
  }

  .footer-bottom {
    font-size: 0.78rem;
  }
}
