@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --primary-color: #1657d9;
  --primary-hover: #0f47b7;
  --accent-red: #d71920;
  --ink: #101827;
  --muted: #5e6a7d;
  --line: #dce3ed;
  --soft: #f4f7fb;
  --soft-2: #eaf0f8;
  --white: #ffffff;
  --dark: #111827;
  --on-primary: #ffffff;
  --on-dark: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.88);
  --grid-line: rgba(22, 87, 217, 0.045);
  --grid-line-2: rgba(22, 87, 217, 0.04);
  --media-bg: #ffffff;
  --logo-bg: #ffffff;
  --story-gradient: linear-gradient(90deg, var(--white), #f8fbff);
  --radius: 8px;
  --shadow: 0 24px 60px rgba(16, 24, 39, 0.12);
}

html[data-theme="dark"] {
  --primary-color: #74a6ff;
  --primary-hover: #4d86ed;
  --accent-red: #ff6368;
  --ink: #eef4ff;
  --muted: #a8b4c7;
  --line: #2d3a50;
  --soft: #101827;
  --soft-2: #172033;
  --white: #151d2b;
  --dark: #080d17;
  --on-primary: #ffffff;
  --on-dark: #ffffff;
  --nav-bg: rgba(12, 18, 31, 0.9);
  --grid-line: rgba(116, 166, 255, 0.08);
  --grid-line-2: rgba(116, 166, 255, 0.055);
  --media-bg: #ffffff;
  --logo-bg: #ffffff;
  --story-gradient: linear-gradient(90deg, #151d2b, #101827);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(0deg, var(--grid-line-2) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 58%);
}

a {
  color: inherit;
}

img,
video,
iframe {
  max-width: 100%;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

section {
  padding: 88px 0;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.08;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.45rem);
  font-weight: 800;
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 760;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 9999;
  padding: 14px 0;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(16, 24, 39, 0.08);
  backdrop-filter: blur(16px);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--accent-red);
  font-size: 1.35rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.logo span {
  color: var(--primary-color);
}


.mobile-menu,
.mobile-menu-exit {
  width: 34px;
  height: 34px;
  cursor: pointer;
}

nav {
  position: fixed;
  top: 0;
  right: 0;
  display: none;
  width: min(84vw, 360px);
  height: 100vh;
  padding: 24px;
  background: var(--dark);
  box-shadow: -24px 0 60px rgba(16, 24, 39, 0.28);
}

nav.menu-btn {
  display: block;
}

nav ul.primary-nav {
  margin-top: 80px;
}

nav a {
  display: block;
  padding: 12px 0;
  color: var(--on-dark);
  font-size: 1.15rem;
  font-weight: 700;
  text-align: right;
  text-decoration: none;
}

nav a:hover,
nav a:focus {
  color: #9fbfff;
}

nav .lang-btn {
  position: absolute;
  top: 22px;
  left: 24px;
}

.theme-toggle {
  width: 54px;
  min-height: 34px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.theme-toggle:hover,
.theme-toggle:focus {
  background: transparent;
}

.theme-track {
  position: relative;
  display: block;
  width: 54px;
  height: 30px;
  background: var(--soft-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: inset 0 1px 4px rgba(16, 24, 39, 0.12);
}

.theme-track::before,
.theme-track::after {
  position: absolute;
  content: "";
  top: 9px;
  z-index: 2;
  width: 12px;
  height: 12px;
  pointer-events: none;
}

.theme-track::before {
  left: 9px;
  background: #f5a524;
  border-radius: 50%;
  box-shadow:
    0 -5px 0 -3px #f5a524,
    0 5px 0 -3px #f5a524,
    5px 0 0 -3px #f5a524,
    -5px 0 0 -3px #f5a524,
    3.6px 3.6px 0 -3px #f5a524,
    -3.6px 3.6px 0 -3px #f5a524,
    3.6px -3.6px 0 -3px #f5a524,
    -3.6px -3.6px 0 -3px #f5a524;
}

.theme-track::after {
  right: 9px;
  background: #6f7d95;
  border-radius: 50%;
  box-shadow: inset 4px 0 0 var(--soft-2);
}

.theme-knob {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 1;
  width: 22px;
  height: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(16, 24, 39, 0.18);
  transition: transform 0.22s ease, background 0.22s ease;
}

html[data-theme="dark"] .theme-knob {
  transform: translateX(24px);
}

.mobile-menu-exit {
  float: right;
  filter: invert(1);
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  padding: 34px 0 30px;
  overflow: hidden;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: 42px;
}

.hero .container::after {
  content: "";
  grid-column: 2;
  grid-row: 1 / span 4;
  min-height: 380px;
  border: 1px solid rgba(220, 227, 237, 0.95);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(16, 24, 39, 0.04), rgba(16, 24, 39, 0.18)),
    url("../media/PalTurn/palika.webp") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.hero-img {
  grid-column: 1;
  display: block;
  width: min(170px, 52%);
  height: auto;
  margin-bottom: 22px;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 3.65vw, 3.25rem);
  font-weight: 850;
  color: var(--ink);
}

.hero h2 {
  margin-bottom: 0;
  color: var(--primary-color);
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: 760;
}

.hero h2::after {
  content: "Megbízható gépészeti megoldások ipari környezetre";
  display: block;
  max-width: 540px;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  font-weight: 500;
  line-height: 1.65;
}

html[lang="en"] .hero h2::after {
  content: "Reliable mechanical engineering solutions for industrial environments";
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-primary,
.hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: 6px;
}

.hero-primary {
  color: var(--on-primary);
  background: var(--primary-color);
}

.hero-primary:hover,
.hero-primary:focus {
  background: var(--primary-hover);
}

.hero-secondary {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
}

.hero-secondary:hover,
.hero-secondary:focus {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.hero .container > :not(.hero-img) {
  grid-column: 1;
}

.hero .container::before {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 190px;
  height: 190px;
  border-right: 14px solid var(--accent-red);
  border-bottom: 14px solid var(--primary-color);
  opacity: 0.95;
}

#rolunk {
  background: var(--soft);
}

.about-section {
  position: relative;
  padding: 0;
  overflow: hidden;
}


.about-content {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 84px 0 54px;
}

.about-content .container {
  width: 100%;
}

.about-content h2,
.features-section h2,
.blue-container h2,
.reference-section h2,
.contact-section h2 {
  max-width: 780px;
  margin-bottom: 34px;
}

ul.features-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

ul.features-list li {
  min-height: 100%;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(16, 24, 39, 0.06);
  color: var(--muted);
  font-weight: 500;
}

ul.features-list li:not(:first-child) {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  align-content: start;
}

ul.features-list li:not(:first-child) p {
  margin-bottom: 0;
}

ul.features-list li:first-child {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  align-content: end;
  min-height: 260px;
  padding: 42px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(22, 87, 217, 0.12), rgba(215, 25, 32, 0.08)),
    var(--white);
  overflow: hidden;
}

ul.features-list li:first-child::before {
  content: "1991";
  display: block;
  margin-bottom: 22px;
  color: var(--primary-color);
  font-size: clamp(3.4rem, 8vw, 6.5rem);
  font-weight: 850;
  line-height: 0.86;
}

ul.features-list li:first-child::after {
  content: "";
  position: absolute;
  right: 28px;
  top: 28px;
  width: 96px;
  height: 96px;
  border-top: 12px solid var(--accent-red);
  border-right: 12px solid var(--primary-color);
  opacity: 0.88;
}

ul.features-list img {
  width: 58px;
  height: 58px;
  padding: 12px;
  margin-bottom: 0;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: contain;
}

html[data-theme="dark"] ul.features-list li:not(:first-child) img {
  background: rgba(116, 166, 255, 0.12);
  border-color: rgba(116, 166, 255, 0.24);
  filter: invert(1) brightness(1.65) saturate(0.45);
  box-shadow: none;
}

.features-section {
  background: var(--white);
  color: var(--ink);
}

ul.features-list1 {
  display: grid;
  gap: 14px;
  counter-reset: history;
}

ul.features-list1 > li {
  position: relative;
  padding: 22px 24px 22px 72px;
  background: var(--story-gradient);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

ul.features-list1 > li::before {
  counter-increment: history;
  content: counter(history, decimal-leading-zero);
  position: absolute;
  top: 22px;
  left: 22px;
  color: var(--primary-color);
  font-size: 0.82rem;
  font-weight: 800;
}

ul.features-list1 ul {
  margin-top: 10px;
  padding-left: 18px;
}

ul.features-list1 ul li {
  position: relative;
  margin: 6px 0;
}

ul.features-list1 ul li::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  background: var(--accent-red);
  border-radius: 99px;
}

.blue-container {
  background: var(--dark);
  color: var(--on-dark);
}

.blue-container .container {
  width: min(1180px, calc(100% - 40px));
}

.blue-container h2 {
  color: var(--on-dark);
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.blue-container ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.blue-container li {
  display: grid;
  align-items: center;
  justify-items: center;
  min-height: 198px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  text-align: center;
}

.blue-container figure {
  display: grid;
  justify-items: center;
  margin: 0;
}

.blue-container img {
  display: block;
  width: 190px;
  height: 92px;
  margin-bottom: 22px;
  padding: 14px;
  background: var(--logo-bg);
  border-radius: 6px;
  object-fit: contain;
}

.blue-container h4 {
  margin: 0;
  max-width: 360px;
  font-size: 1rem;
  line-height: 1.35;
}

.blue-container a {
  color: var(--on-dark);
  text-decoration: none;
}

.blue-container a:hover {
  color: #b9ccff;
}

#ref-div {
  background: var(--soft);
}

.reference-section,
.reference-section2 {
  padding: 72px 0;
}

.reference-section .container,
.reference-section2 .container {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  grid-auto-flow: dense;
  gap: 24px 44px;
  align-items: start;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(16, 24, 39, 0.08);
}

.reference-section2 .container {
  background: var(--story-gradient);
}

.reference-section h2 {
  grid-column: 1 / -1;
  margin-bottom: 12px;
}

.reference-section h3,
.reference-section2 h3 {
  grid-column: 1 / -1;
  margin-bottom: 18px;
}

.reference-section p,
.reference-section2 p {
  grid-column: 2;
  color: var(--muted);
}

.reference-copy {
  grid-column: 2;
}

.reference-copy p {
  grid-column: auto;
}

.reference-copy p:first-child {
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 700;
}

.slideshow-container {
  grid-column: 1;
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--media-bg);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(16, 24, 39, 0.08), 0 14px 34px rgba(16, 24, 39, 0.08);
}

.slideshow-container > div {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.slideshow-container img,
.slideshow-container video,
.slideshow-container iframe {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  border: 0;
  object-fit: contain;
  object-position: center center;
  background: var(--media-bg);
}

.slideshow-container video,
.slideshow-container iframe {
  aspect-ratio: auto;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-top: -21px;
  color: var(--on-primary);
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
  background: rgba(16, 24, 39, 0.72);
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
}

.next {
  right: 14px;
}

.prev {
  left: 14px;
}

.prev:hover,
.next:hover {
  background: var(--primary-color);
}

.mySlides1,
.mySlides2,
.mySlides3,
.mySlides4,
.mySlides5,
.mySlides6 {
  display: none;
}

.contact-section {
  background:
    linear-gradient(180deg, var(--white), var(--soft));
  overflow: hidden;
}

.contact-section .container {
  width: min(1180px, calc(100% - 40px));
}

.gallery {
  position: relative;
  width: 100%;
  min-height: 430px;
}

.gallery-container {
  display: block;
  position: relative;
  min-height: 390px;
  padding: 18px 0;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.gallery-container.is-dragging {
  cursor: grabbing;
}

.gallery-item {
  position: absolute;
  top: 18px;
  left: 50%;
  width: clamp(230px, 24vw, 292px);
  min-height: 340px;
  opacity: 0.58;
  transform: translateX(-50%) scale(0.82);
  transition: transform 0.34s ease, opacity 0.34s ease, filter 0.34s ease;
  pointer-events: auto;
  cursor: pointer;
}

.gallery-item-1 {
  z-index: 1;
  opacity: 0.34;
  filter: saturate(0.84);
  transform: translateX(calc(-50% - min(38vw, 430px))) scale(0.74);
}

.gallery-item-2 {
  z-index: 2;
  opacity: 0.62;
  filter: saturate(0.92);
  transform: translateX(calc(-50% - min(20vw, 240px))) scale(0.86);
}

.gallery-item-3 {
  z-index: 5;
  opacity: 1;
  filter: none;
  transform: translateX(-50%) scale(1);
  pointer-events: auto;
  cursor: default;
}

.gallery-item-4 {
  z-index: 2;
  opacity: 0.62;
  filter: saturate(0.92);
  transform: translateX(calc(-50% + min(20vw, 240px))) scale(0.86);
}

.gallery-item-5 {
  z-index: 1;
  opacity: 0.34;
  filter: saturate(0.84);
  transform: translateX(calc(-50% + min(38vw, 430px))) scale(0.74);
}

.card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  height: 100%;
  min-height: 330px;
  padding: 24px;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 42px rgba(16, 24, 39, 0.1);
  overflow: hidden;
}

.gallery-item-3 .card {
  box-shadow: 0 28px 64px rgba(16, 24, 39, 0.18);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-red), var(--primary-color));
}

.card img {
  width: 86px;
  height: 86px;
  margin-bottom: 22px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 26px rgba(16, 24, 39, 0.14);
}

.card h1 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  font-weight: 800;
}

.card h2 {
  min-height: 48px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
}

.card p {
  margin-bottom: 18px;
}

.card p a {
  color: var(--ink);
  text-decoration: none;
}

.card .button {
  align-self: end;
  width: 100%;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  color: var(--on-primary);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  background: var(--primary-color);
  border: 0;
  border-radius: 6px;
}

.button:hover,
button:hover {
  background: var(--primary-hover);
}


footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.82);
}

.footer-container {
  padding: 38px 0 18px;
}

footer .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(14px, 3vw, 34px);
  align-items: stretch;
}

.ttinfo {
  display: flex;
  min-width: 0;
  gap: clamp(10px, 1.8vw, 20px);
  align-items: center;
  justify-self: start;
  height: 100%;
}

.ttinfo img {
  display: block;
  width: clamp(62px, 8vw, 96px);
  height: auto;
  flex: 0 0 auto;
  padding: 10px;
  background: var(--logo-bg);
  border-radius: 6px;
}

footer p {
  margin-bottom: 0;
  font-size: clamp(0.72rem, 1.25vw, 1rem);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.footer-links a {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 5px 0;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  white-space: nowrap;
}

.footer-links {
  display: grid;
  align-content: center;
  justify-self: center;
  text-align: left;
  height: 100%;
}

.footer-links a:hover {
  color: #b9ccff;
}

.iso img {
  display: block;
  width: clamp(62px, 8vw, 96px);
  height: auto;
  margin: 0 auto;
  padding: 10px;
  background: var(--logo-bg);
  border-radius: 6px;
  object-fit: contain;
}

.iso a {
  display: block;
}

.iso {
  display: grid;
  align-content: center;
  justify-self: end;
  text-align: center;
  height: 100%;
}

.iso li {
  display: grid;
  justify-items: center;
}

.footer-links2 {
  width: min(1120px, calc(100% - 40px));
  margin: 24px auto 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.56);
  text-align: center;
}

@media (min-width: 820px) {
  .mobile-menu,
  .mobile-menu-exit {
    display: none;
  }

  nav,
  nav.menu-btn {
    position: static;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: auto;
    height: auto;
    flex: 1;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  nav ul {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  nav ul.primary-nav {
    margin-top: 0;
  }

  nav a {
    padding: 10px 12px;
    color: var(--ink);
    font-size: 0.94rem;
    font-weight: 750;
    text-align: left;
  }

  nav a:hover,
  nav a:focus,
  nav li.current a {
    color: var(--primary-color);
  }

  nav .lang-btn {
    position: static;
  }

  .contact-btn a {
    color: var(--on-primary);
    background: var(--primary-color);
    border-radius: 6px;
  }

  .contact-btn.current a {
    color: #ffffff;
    background: var(--primary-hover);
  }

  .contact-btn a:hover,
  .contact-btn a:focus {
    color: #ffffff;
    background: var(--primary-hover);
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
  }

  .hero .container,
  .reference-section .container,
  .reference-section2 .container {
    grid-template-columns: 1fr;
  }

  .hero .container::after {
    min-height: 360px;
  }

  ul.features-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  footer .container {
    gap: 16px;
  }
}

@media (max-width: 720px) {
  .container,
  .about-content,
  .blue-container .container {
    width: min(100% - 28px, 1120px);
  }

  section {
    padding: 62px 0;
  }

  .hero {
    padding-top: 54px;
  }

  .hero .container::after {
    min-height: 280px;
  }

  .hero .container::before {
    display: none;
  }

  .hero-img {
    width: min(220px, 74%);
  }

  ul.features-list,
  .blue-container ul {
    grid-template-columns: 1fr;
  }

  ul.features-list li:first-child {
    grid-column: 1;
    min-height: 240px;
    padding: 28px;
  }

  ul.features-list li:not(:first-child) {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto;
    align-items: start;
  }

  .reference-section,
  .reference-section2 {
    padding: 28px 0;
  }

  .reference-section .container,
  .reference-section2 .container {
    padding: 20px;
  }

  .reference-section h2,
  .reference-section h3,
  .reference-section p,
  .reference-section2 h3,
  .reference-section2 p,
  .reference-copy,
  .slideshow-container {
    grid-column: 1;
  }

  .gallery,
  .gallery-container {
    min-height: 390px;
  }

  .gallery-container {
    padding: 16px 0;
  }

  .gallery-item {
    top: 16px;
    width: min(78vw, 300px);
    min-height: 330px;
  }

  footer .container {
    width: min(100% - 20px, 1120px);
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 10px;
  }

  .ttinfo {
    gap: 8px;
  }

  .ttinfo img {
    width: 48px;
    height: auto;
    padding: 7px;
  }

  .footer-links a {
    gap: 6px;
    padding: 3px 0;
    font-size: 0.68rem;
  }

  .iso img {
    width: 48px;
    height: auto;
    padding: 7px;
  }

  .gallery-item-1 {
    transform: translateX(calc(-50% - 58vw)) scale(0.7);
  }

  .gallery-item-2 {
    transform: translateX(calc(-50% - 32vw)) scale(0.82);
  }

  .gallery-item-4 {
    transform: translateX(calc(-50% + 32vw)) scale(0.82);
  }

  .gallery-item-5 {
    transform: translateX(calc(-50% + 58vw)) scale(0.7);
  }

  .card {
    min-height: 326px;
    padding: 24px;
  }

  .ttinfo img {
    margin-bottom: 0;
  }
}
