main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg);
}

.panelsbox {
  display: flex;
  gap: 1rem;
  width: auto;
  max-width: 1200px;
  border: 10px solid var(--accent);
  background: var(--light-backround);
  border-radius: 2rem;
  padding: 1rem;
  align-items: stretch;
}

.panel.side {
  box-sizing: border-box;
  background: var(--accent);
  color: var(--text);
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1 1 0px; /* sides can shrink to zero if necessary */
  min-width: 0;
  min-height: 200px;
  max-height: 600px;
  border-radius: 1rem;
  text-align: left;
  font-size: 1rem;
  overflow: hidden;
}

.panel.right p {
  padding: 1rem;
  font-family: "Saira", sans-serif;
  line-height: 1.3;
}

.panel.left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 1 auto; /* size to content */
}

/* Hide side panels on narrow screens */
@media (max-width: 950px) { /* higher=later brake point */
  .panel.side { display: none; }
}

.center img {
  max-width: 100%;
  max-height: 600px;
  border-radius: 1rem;
  object-fit: contain;
}

.center video {
  max-width: 100%;
  max-height: 600px;
  border-radius: 1rem;
  object-fit: contain;
}

.socials-icons {
  display: flex;
  justify-content: center;
  padding: 1rem;
  padding-bottom: 2rem;
  background: var(--bg);
  gap: 1rem;
}
.socials-icons a svg {
  width: 1.8rem;
  height: 1.8rem;
  transition: transform 200ms ease;
  fill: var(--text);
}
.socials-icons a svg:hover {
  transform: scale(1.08);
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .socials-icons a svg {
    transform: none !important;
  }
}
