body,
h1,
h2,
h3,
h4,
h5 {
  font-family: "Gotham", Arial, sans-serif;
}

body {
  font-size: 16px;
  font-variant-numeric: lining-nums;
}

p {
  font-size: 18px;
  font-weight: 400;
}

@property --border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

h1 {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

h2 {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.w3-text-blue,
.w3-text-red {
  font-weight: 900;
  letter-spacing: -0.025em;
}

.w3-text-blue {
  text-transform: uppercase;
}

.w3-text-red {
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 6px solid currentColor;
}

#DesignChallenge2 > p {
  max-width: 720px;
}

.module-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  max-width: 1100px;
}

.module-copy-column {
  min-width: 0;
}

.module-copy h4 {
  font-size: 20px;
  font-weight: 700;
  margin: 16px 0 8px;
}

.objects-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.objects-list h5 {
  font-size: 16px;
  font-weight: 700;
  margin: 8px 0;
}

.module-copy p,
.module-copy ul {
  font-size: 18px;
  margin-top: 0;
}

.module-copy ul {
  padding-left: 20px;
}

.model-description p,
.ai-prompts p {
  font-size: 18px;
  max-width: 55ch;
}

@media (max-width: 700px) {
  .module-copy {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .objects-list {
    gap: 12px;
  }
}

#Home {
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

img {
  width: 100%;
  height: 100%;
}

img[onclick="onClick(this)"] {
  --move-x: 0px;
  --move-y: 0px;
  --border-angle: 0deg;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  border: 2px solid transparent;
  border-image: conic-gradient(
    from var(--border-angle),
    transparent 0deg 270deg,
    rgba(255, 255, 255, 0.15) 300deg,
    white 330deg 350deg,
    transparent 360deg
  ) 1;
  transform: translate(var(--move-x), var(--move-y)) scale(1);
  transition: transform 90ms ease-in-out, --border-angle 450ms ease-in-out;
  transform-origin: center;
}

img[onclick="onClick(this)"]:hover {
  z-index: 10;
  --border-angle: 360deg;
  transform: translate(var(--move-x), var(--move-y)) scale(1.05);
  box-shadow: 0 14px 18px rgba(0, 0, 0, 0.28);
}

.grid {
  display: inline-grid;
  grid-template-columns: auto auto auto auto auto;
}

.w3-half img {
  margin-bottom: -6px;
  margin-top: 16px;
  opacity: 0.8;
  cursor: pointer;
}

.w3-half img:hover {
  opacity: 1;
}

.container {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 2000px;
  padding-top: 56.25%;
}

.responsive-iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

.project-model-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 24px 0 40px;
}

.project-model-viewer {
  display: block;
  width: 100%;
  height: min(60vw, 560px);
  min-height: 360px;
  background: hsl(210, 8%, var(--viewer-background-lightness, 34%));
}

.model-controls-toggle {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 4px;
  color: white;
  background: rgba(20, 24, 28, 0.82);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease-in-out, background-color 120ms ease-in-out;
}

.project-model-container:hover .model-controls-toggle,
.project-model-container:focus-within .model-controls-toggle {
  opacity: 1;
  pointer-events: auto;
}

.model-controls-toggle:hover,
.model-controls-toggle:focus-visible {
  background: rgba(20, 24, 28, 0.98);
}

.model-fullscreen-toggle {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 4px;
  color: white;
  background: rgba(20, 24, 28, 0.82);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease-in-out, background-color 120ms ease-in-out;
}

.project-model-container:hover .model-fullscreen-toggle,
.project-model-container:focus-within .model-fullscreen-toggle,
.project-model-container:fullscreen .model-fullscreen-toggle {
  opacity: 1;
  pointer-events: auto;
}

.model-fullscreen-toggle:hover,
.model-fullscreen-toggle:focus-visible {
  background: rgba(20, 24, 28, 0.98);
}

.project-model-container:fullscreen {
  width: 100vw;
  max-width: none;
  height: 100vh;
  margin: 0;
}

.project-model-container:fullscreen .project-model-viewer {
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
}

.model-background-control {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 900px;
  margin-top: 20px;
}

.model-background-control input {
  flex: 1;
  accent-color: #555b62;
}

#modal01 {
  background-color: rgba(128, 128, 128, 0.9);
  -webkit-backdrop-filter: grayscale(1) contrast(1.1);
  backdrop-filter: grayscale(1) contrast(1.1);
}

#caption {
  text-align: left;
}

#modal01 .w3-modal-content {
  box-sizing: border-box;
  max-width: 85vw;
  max-height: 90vh;
}

#modal01 #img01 {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
}

#modal01 #img01.fixed-workshop-image {
  width: 350px;
  max-width: 350px;
  height: 350px;
  max-height: 350px;
  object-fit: cover;
}

#modal01 #caption {
  margin: 16px 0 0;
}
