@import url("https://fonts.googleapis.com/css2?family=Advent+Pro:wght@400&family=Encode+Sans:wght@400;900;600&family=Indie+Flower&display=swap");

:root {
  /* Fonts */
  --font-logo: "Encode Sans", sans-serif;
  --font-nav: "Encode Sans", sans-serif;
  --font-body: "Encode Sans", sans-serif;
  --font-project-heading: "Advent Pro", sans-serif;
  --font-signature: "Indie Flower", cursive;

  /* Font sizes */
  --logo-size: 32px;
  --nav-size: 32px;
  --project-heading-size: 36px;
  --body-size: 20px;
  --signature-size: 40px;

  /* Font weights */
  --logo-weight: 900;
  --nav-weight: 400;
  --body-weight: 400;
  --project-heading-weight: 400;
  --signature-weight: 400;

  /* Colors */
  --bg: #242424;
  --text: #f5f5f5;
  --muted: #d0d0d0;
  --neon-green: #39ff14;
  --green: #cafad9;

  /* Layout */
  --content-width: 80vw;
  --image-gap: 32px;
  --section-gap: 160px;

  --page-margin-wide: 5vw; /* 1/20 på hver side */
  --content-width: 80vw;

  --project-grid-columns: repeat(10, 1fr);
  --project-row-gap: 32px;
  --project-section-gap: 180px;

  /* Shape */
  --border-radius: 0;
}
* {
  box-sizing: border-box;
}


body {
  margin: 0;
  background: var(--bg);
  color: var(--text);

  font-family: var(--font-body);
  font-size: var(--body-size);
  font-weight: var(--body-weight);

  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.home {
  width: var(--content-width);
  margin: 0 auto;

  min-height: 100vh;

  display: flex;
  flex-direction: column;
  
  padding-bottom: 48px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;

  margin-top: 80px;
}

.logo {
  font-family: var(--font-logo);
  font-size: var(--logo-size);
  font-weight: var(--logo-weight);

  margin: 0;
}

.main-nav {
  display: flex;
  gap: 72px;

  margin-top: 48px;
}

.main-nav a {
  font-family: var(--font-nav);
  font-size: var(--nav-size);
  font-weight: var(--nav-weight);
  text-transform: uppercase;

  transition: font-weight 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
  font-weight: 600;
}




.contact {
  margin-top: auto;

  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.signature {
  font-family: var(--font-signature);
  font-size: var(--signature-size);

    margin: 0 0 16px 0;
}

.contact-info {
  font-size: calc(var(--body-size) + 2px);
  line-height: 1.5;

  text-align: right;

  margin: 0;
}

.portrait-section {
  display: flex;
  justify-content: center;
  align-items: center;

  margin-top: 72px;
}

.portrait-wrapper {
  position: relative;
  width: 325px;
  height: 325px;

  border: 1px solid currentColor;
  cursor: help;
  overflow: hidden;

  transition: border-color 0.25s ease;
}

.portrait-wrapper:hover,
.portrait-wrapper.active {
  border-color: var(--neon-green);
}

.portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
}

/* mørkt overlay */
.portrait-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;

  transition: background 0.25s ease;
}

.portrait-wrapper:hover .portrait-overlay {
  background: rgba(57, 255, 20, 0.18);
}

.portrait-wrapper.active:not(:hover) .portrait-overlay {
  background: rgba(0, 0, 0, 0.28);
}


.bouncing-square {
  position: fixed;
  top: 0;
  left: 0;

  border: 1.5px solid currentColor;
  background: transparent;

  z-index: 999;
  cursor: pointer;
  pointer-events: auto;
}

.bouncing-square.pop {
  animation: implodeSquare 250ms ease-in forwards;
}

@keyframes implodeSquare {
  to {
    opacity: 0;
    transform: scale(0);
  }
}

/* ================================
   GRAPHIC PAGE BASE
================================ */

.graphic-page {
  width: var(--content-width); /* 8/10 midten */
  margin: 80px auto 0 auto;
}

.graphic-project {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  column-gap: 0;
  row-gap: 0;

  position: relative;
  margin-bottom: var(--section-gap);
}

.graphic-project-title {
  font-family: var(--font-project-heading);
  font-size: var(--project-heading-size);
  font-weight: var(--project-heading-weight);
  line-height: 1.1;

  margin: 0;
}

.project-body {
  font-family: var(--font-body);
  font-size: var(--body-size);
  font-weight: var(--body-weight);
  line-height: 1.3;

  margin: 0;
}

.project-body p {
  margin: 0;
}

.project-body .project-year {
  display: block;
  margin-top: 16px;
}

.project-image {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: var(--border-radius);
}


/* ================================
   PROJECT 1 — WINE LABEL
================================ */

.wine-project {
  min-height: 1100px;
}

/* tittel starter midt på siden, kolonne 6/10 */
.wine-title {
  grid-column: 6 / 11;
  grid-row: 1;

  margin-bottom: 32px;
}

/* body starter tredje kolonne */
.wine-text {
  grid-column: 3 / 5;
  grid-row: 2;

  max-width: 260px;
  margin-top: 80px;
}

/* første bilde starter midt på, 4/10 bredde */
.wine-image-1 {
  grid-column: 6 / 10;
  grid-row: 2;

  margin-top: 0;
}

/* bilde to helt sentrert, ca 6.2/10 bredt */
.wine-image-2 {
  grid-column: 2 / 9;
  grid-row: 3;

  width: 88.5%; /* 6.2 kolonner inni 7 kolonner */
  justify-self: center;

  margin-top: 32px;
}

/* tredje bilde starter rundt 6.2/10 og går til kolonne 9 */
.wine-image-3 {
  grid-column: 7 / 10;
  grid-row: 4;

  margin-top: 32px;
}


/* ================================
   PROJECT 2 — 292 AURLAND
================================ */

.aurland-project {
  min-height: 1000px;
}

/* tittel starter ved kolonne 2/10 */
.aurland-title {
  grid-column: 2 / 7;
  grid-row: 1;

  margin-bottom: 32px;
}

/* bilde 1 starter ved kolonne 2 og går til kolonne 6 */
.aurland-image-1 {
  grid-column: 2 / 7;
  grid-row: 2;

  z-index: 1;
}

/* bodytekst til høyre for bilde 1 */
.aurland-text-1 {
  grid-column: 7 / 10;
  grid-row: 2;

  max-width: 280px;
  margin-left: 3vw;
  margin-top: 20%;
}

/* bilde 2 overlapper bilde 1, starter ca kolonne 4.6 og går til 8.2 */
.aurland-image-2 {
  grid-column: 5 / 10;
  grid-row: 2;

  width: 100%;
  justify-self: start;

  margin-top: 65%;
  margin-left: -4%;

  z-index: 2;
}

/* bilde 3 med luft ned, starter kolonne 2 og går til kolonne 6 */
.aurland-image-3 {
  grid-column: 2 / 7;
  grid-row: 3;

  margin-top: 64px;
}

/* bodytekst til høyre for bilde 3 */
.aurland-text-2 {
  grid-column: 7 / 10;
  grid-row: 3;

  max-width: 280px;
  margin-left: 3vw;
  margin-top: calc(64px + 30%);
}

/* ================================
   PROJECT 3 — PRINT / HOODIE
================================ */

.print-project {
  min-height: 1050px;
}

/* tittel mer mot venstre */
.print-title {
  grid-column: 5 / 9;
  grid-row: 1;

  margin-top: 0;
}

/* bilde 1 til høyre for tittelen */
.print-image-1 {
  grid-column: 7 / 11;
  grid-row: 1 / 3;

  width: 100%;
  justify-self: start;

  margin-top: clamp(-90px, -5vw, -32px);
}

/* bilde 2 under tittelen */
.print-image-2 {
  grid-column: 3 / 7;
  grid-row: 2;

  width: 100%;
  justify-self: start;

  margin-top: clamp(40px, 6vw, 96px);
}

/* bodytekst til høyre for bilde 2 / under bilde 1 */
.print-text {
  grid-column: 7 / 10;
  grid-row: 2;

  max-width: 320px;

  margin-left: 0;
  margin-top: clamp(280px, 30vw, 440px);
}

/* bilde 3 større under, fra der tittelen starter til høyre margin */
.print-image-3 {
  grid-column: 5 / 10;
  grid-row: 3;

  width: 100%;

  margin-top: -24px;
}


/* ================================
   FOOTER
================================ */

.project-footer {
  width: var(--content-width);
  margin: 240px auto 48px auto;

  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.made-by {
  margin: 0;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.contact-heading {
  margin: 0 0 16px 0;
}

/* ================================
   LIGHTBOX
================================ */

.lightbox {
  position: fixed;
  inset: 0;

  display: none;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.88);
  z-index: 5000;
}

.lightbox.open {
  display: flex;
}

.lightbox-image {
  max-width: 86vw;
  max-height: 86vh;
  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;

  background: none;
  border: none;
  color: white;

  font-family: var(--font-body);
  cursor: pointer;
}

.lightbox-close {
  top: 24px;
  right: 32px;
  font-size: 48px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 72px;
}

.lightbox-prev {
  left: 32px;
}

.lightbox-next {
  right: 32px;
}

/* ================================
   PAGE HEADER / NAV
================================ */

.page-header {
  width: 90vw;
  margin: 0 auto;
  padding: 32px 0;

  display: flex;
  align-items: center;
}

.page-logo {
  font-family: var(--font-logo);
  font-size: 24px;
  font-weight: var(--logo-weight);
}

.page-nav {
  margin-left: auto;

  display: flex;
  justify-content: flex-end;
  gap: 72px;
}

.page-nav a {
  font-family: var(--font-nav);
  font-size: 24px;
  font-weight: 400;
  text-transform: uppercase;
  transition: font-weight 0.2s ease;
}

.page-nav a:hover,
.page-nav a.active {
  font-weight: 900;
}

.menu-toggle {
  display: none;
}


/* ================================
   UX / WEBSITES PAGE
================================ */

.web-page {
  width: var(--content-width);
  margin: 80px auto 0 auto;
}

.web-project {
  display: grid;
  grid-template-columns: repeat(10, 1fr);

  min-height: 440px;
  margin-bottom: 120px;
  padding: 52px 56px;

  color: var(--text);
  text-decoration: none;

  transition:
    background-color 0.25s ease,
    transform 0.25s ease;
}

.web-project:hover {
  transform: translateY(-6px);
}

.web-project-red {
  background-color: rgba(220, 17, 21, 0.1);
}

.web-project-red:hover {
  background-color: rgba(220, 17, 21, 0.2);
}

.web-project-purple {
  background-color: rgba(146, 19, 200, 0.1);
}

.web-project-purple:hover {
  background-color: rgba(146, 19, 200, 0.2);
}

.web-project-title {
  grid-column: 1 / 11;
  grid-row: 1;

  font-family: var(--font-project-heading);
  font-size: var(--project-heading-size);
  font-weight: var(--project-heading-weight);
  line-height: 1.1;

  margin: 0 0 40px 0;
}

.web-project-text {
  grid-column: 1 / 3;
  grid-row: 2;

  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: 1.3;

  align-self: center;
}

.web-project-text p {
  margin: 0;
}

.web-project-image {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.web-project-image-1 {
  grid-column: 4 / 11;
  grid-row: 2;
}

.web-project-image-2 {
  grid-column: 1 / 7;
  grid-row: 2;
}

.web-project-text-right {
  grid-column: 8 / 11;
  grid-row: 2;

  align-self: center;
}

/* ================================
   OTHER PAGE
================================ */

.other-page {
  min-height: calc(100vh - 110px);

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
}

.other-link {
  font-family: var(--font-project-heading);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.25;

  color: #ff7b83;
  text-decoration: none;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.other-link:hover {
  color: var(--neon-green);
  transform: scale(1.03);
}

/* ================================
   CASE STUDY PAGE
================================ */

.case-page {
  width: var(--content-width);
  margin: 80px auto 0 auto;
}

.case-intro {
  margin-bottom: 32px;
}

.case-title {
  font-family: var(--font-project-heading);
  font-size: var(--project-heading-size);
  font-weight: var(--project-heading-weight);
  line-height: 1.1;
  margin: 0 0 20px 0;
}

.case-lead {
  max-width: 900px;
  font-size: 14px;
  line-height: 1.35;
  margin: 0;
}

.case-panel {
  width: 100%;
  margin-bottom: 28px;
  padding: 36px 64px;

  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 32px;
  align-items: center;
}

.case-panel-dark {
  background: #3a3a3a;
}

.case-panel-light {
  background: #9b9b9b;
  color: #111;
}

.case-panel-text {
  grid-column: 2 / 4;
  font-size: 14px;
  line-height: 1.3;
}

.case-panel-text p {
  margin: 0 0 16px 0;
}

.case-panel-text ul {
  margin: 16px 0;
  padding-left: 18px;
}

.display-dark-note {
  grid-column: 2 / 4;
  grid-row: 2;

  font-size: 14px;
  line-height: 1.3;

  margin: 120px 0 0 0;
}

.case-image {
  grid-column: 4 / 10;
  width: 100%;
  display: block;
}

.case-image-stack {
  grid-column: 4 / 10;

  display: flex;
  flex-direction: column;
  gap: 36px;
}

.case-panel-tall {
  align-items: start;
}

.training-panel {
  margin-top: 120px;
  margin-bottom: 120px;
}

.case-small-heading {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 20px 0;
}

.case-video {
  grid-column: 5 / 10;
  width: 100%;
  display: block;
}

.case-section-title {
  margin: 0 0 24px 0;
}

.case-section-title h2 {
  font-family: var(--font-project-heading);
  font-size: 28px;
  font-weight: 400;
  margin: 0;
}

.case-panel-heading {
  grid-column: 1 / 11;

  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;

  margin: 0 0 16px 0;
}

.case-menu-panel {
  display: block;
  padding: 36px 64px 56px 64px;
}

.operation-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.7fr;
  gap: 64px;
  align-items: start;
}

.operation-grid p,
.operation-bottom-row p,
.comparison-row p {
  font-size: 12px;
  line-height: 1.3;
  margin: 0 0 12px 0;
}

/* Original software first iteration */
.operation-originals {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.operation-originals img {
  width: 38%;
  max-height: 360px;
  object-fit: contain;
}

/* Figma development: light mode + dark mode beside each other */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: start;
}

.settings-grid img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
}

/* Programmed results */
.operation-bottom-row {
  margin-top: 48px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  align-items: start;
}

.operation-result {
  width: 72%;
  display: block;
  margin: 0 auto;
  max-height: 360px;
  object-fit: contain;
}



.comparison-panel {
  display: block;
}

.comparison-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;

  padding: 12px 80px 24px 80px;
}

.comparison-row img {
  width: 100%;
  display: block;
}

.final-panel {
  margin-top: 120px;
}

.final-panel .case-image {
  grid-column: 4 / 11;
}


/* ================================
   FRONTEND / SCANSERVER CASE PAGE
================================ */

.frontend-case-page {
  width: var(--content-width);
  margin: 80px auto 0 auto;
}

.frontend-lead {
  max-width: none;
  font-size: var(--body-size);
}


/* GENERELT PANEL */

.frontend-panel {
  background: #3a3a3a;
  margin-bottom: 28px;
  padding: 64px;

  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 32px;

  position: relative;
}

.frontend-image {
  width: 100%;
  display: block;
  object-fit: contain;
}


/* FØRSTE PANEL */

.frontend-panel-top {
  align-items: center;
}

.frontend-image-start {
  grid-column: 1 / 6;
  grid-row: 1;
}

.frontend-text-start {
  grid-column: 7 / 11;
  grid-row: 1;

  font-size: 26px;
  line-height: 1.2;
}

.frontend-text-start p {
  margin: 0;
}


/* ADDED FUNCTIONALITY PANEL */

.frontend-panel-large {
  min-height: auto;
  padding: 56px 64px 64px 64px;
}

.frontend-section-heading {
  grid-column: 2 / 6;
  grid-row: 1;

  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;

  margin: 0;
}

.frontend-added-functionality {
  grid-column: 1 / 11;
  grid-row: 2;

  width: 100%;
  display: block;

  margin-top: -42px;;
}





/* ================================
   @MEDIA
================================ */


/* ================================
   TABLET / HALV SKJERM
================================ */


@media (max-width: 1100px) {

  :root {
    --logo-size: 26px;
    --nav-size: 26px;
    --project-heading-size: 30px;
    --body-size: 18px;
    --signature-size: 34px;
  }

  .portrait-wrapper {
    width: 260px;
    height: 260px;
  }
  
  .wine-text {
    grid-column: 3 / 5;
    margin-top: 24px;
    max-width: 320px;
  }

  .aurland-text-1 {
    margin-top: 6%;
  }

    .web-page {
    width: 90vw;
    margin-top: 56px;
  }

  .web-project {
    min-height: auto;
    padding: 40px;
    margin-bottom: 80px;
  }

  .web-project-title {
    margin-bottom: 32px;
  }

  .web-project-text {
    grid-column: 1 / 4;
  }

  .web-project-image-1 {
    grid-column: 4 / 11;
  }

  .web-project-image-2 {
    grid-column: 1 / 7;
  }

  .web-project-text-right {
    grid-column: 8 / 11;
  }
}


@media (max-width: 1100px) {
  :root {
    --content-width: 90vw;
    --section-gap: 110px;
    --image-gap: 20px;

    --project-heading-size: 30px;
    --body-size: 18px;
  }

  .page-header {
    width: 90vw;
  }

  .page-logo {
    font-size: 20px;
  }

  .page-nav {
    gap: 36px;
  }

  .page-nav a {
    font-size: 20px;
  }

  .graphic-page {
    width: 90vw;
    margin-top: 56px;
  }

  .graphic-project {
    margin-bottom: 110px;
  }

  .wine-project,
  .aurland-project,
  .print-project {
    min-height: auto;
  }

  .wine-text,
  .aurland-text-1,
  .aurland-text-2,
  .print-text {
    max-width: 300px;
  }

  .wine-image-2 {
    width: 95%;
  }

  .aurland-image-2 {
    margin-top: 48%;
  }

  @media (max-width: 1100px) {
  .case-page {
    width: 90vw;
    margin-top: 56px;
  }

  .case-panel {
    padding: 32px;
    gap: 24px;
  }

  .case-panel-text {
    grid-column: 1 / 4;
  }

  .case-image,
  .case-image-stack {
    grid-column: 4 / 11;
  }

  .case-video {
    grid-column: 4 / 11;
  }

  .operation-grid {
    gap: 40px;
  }

  .comparison-row {
    padding: 12px 32px 24px 32px;
    gap: 48px;
  }
}





/* ================================
   MOBIL
================================ */


@media (max-width: 768px) {
  :root {
    --content-width: 92vw;
    --section-gap: 80px;
    --image-gap: 16px;

    --project-heading-size: 26px;
    --body-size: 16px;
  }

  .page-header {
    width: 92vw;
    padding: 24px 0;
    position: relative;
  }

  .page-logo {
    font-size: 18px;
    max-width: 70%;
    line-height: 1.1;
  }

  .menu-toggle {
    margin-left: auto;

    display: flex;
    flex-direction: column;
    gap: 5px;

    width: 32px;
    height: 24px;

    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: currentColor;
  }

  .menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
  }

  .page-nav {
    position: absolute;
    top: 64px;
    right: 0;

    display: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;

    background: var(--bg);
    padding: 24px 0 24px 24px;

    z-index: 1000;
  }

  .page-nav.open {
    display: flex;
  }

  .page-nav a {
    font-size: 18px;
  }

  .graphic-page {
    width: 92vw;
    margin-top: 40px;
  }

  .graphic-project {
    display: block;
    margin-bottom: var(--section-gap);
  }

  .graphic-project-title {
    margin-bottom: 24px;
  }

  .project-body {
    max-width: none;
    margin: 16px 0 24px 0;
  }

  .project-image {
    width: 100%;
    margin: 20px 0 0 0;
  }

  .wine-text,
  .aurland-text-1,
  .aurland-text-2,
  .print-text {
    margin: 16px 0 24px 0;
    max-width: none;
  }

  .wine-image-1,
  .wine-image-2,
  .wine-image-3,
  .aurland-image-1,
  .aurland-image-2,
  .aurland-image-3,
  .print-image-1,
  .print-image-2,
  .print-image-3 {
    width: 100%;
    margin: 20px 0 0 0;
    justify-self: auto;
  }

  .project-footer {
    width: 92vw;
    margin-top: 120px;
    flex-direction: column;
    align-items: flex-end;
    gap: 48px;
  }
}

@media (max-width: 768px) {

  :root {
    --logo-size: 20px;
    --nav-size: 18px;
    --project-heading-size: 24px;
    --body-size: 16px;
    --signature-size: 28px;
  }

  .portrait-wrapper {
    width: 200px;
    height: 200px;
  }

  .main-nav {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

    .web-page {
    width: 92vw;
    margin-top: 40px;
  }

  .web-project {
    display: block;
    padding: 28px;
    margin-bottom: 64px;
  }

  .web-project-title {
    margin-bottom: 24px;
  }

  .web-project-text,
  .web-project-text-right {
    margin-bottom: 24px;
  }

  .web-project-image {
    width: 100%;
    margin-top: 20px;
  }

  .other-link {
    font-size: 26px;
    padding: 0 24px;
  }
}

@media (max-width: 768px) {
  .case-page {
    width: 92vw;
    margin-top: 40px;
  }

  .case-title {
    font-size: 28px;
  }

  .case-lead {
    font-size: 14px;
  }

  .case-panel,
  .case-menu-panel {
    display: block;
    padding: 24px;
  }

  .case-panel-text {
    margin-bottom: 24px;
  }

  .case-image,
  .case-video {
    width: 100%;
  }

  .case-image-stack {
    gap: 20px;
  }

  .training-panel,
  .final-panel {
    margin-top: 80px;
    margin-bottom: 80px;
  }

 .operation-grid {
    display: block;
  }

  .operation-originals {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .operation-originals img {
    width: 100%;
    max-height: none;
  }

  .settings-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .settings-grid img {
    max-height: none;
  }

  .operation-bottom-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .operation-result {
    width: 100%;
    max-height: none;
  }

  .operation-bottom-row p {
    font-size: 10px;
  }
    @media (max-width: 768px) {
    .display-change-panel {
      display: flex;
      flex-direction: column;
    }

  .display-change-panel {
      display: flex;
      flex-direction: column;
    }

    .display-change-text {
      order: 1;
      margin-bottom: 8px;
    }

    .display-light-image {
      order: 2;
      margin-top: 0;
    }

    .display-dark-note {
      order: 3;
      align-self: flex-start;

      margin: 20px 0 12px 0;
      font-size: 14px;
    }

    .display-dark-image {
      order: 4;
      margin-top: 0;
    }
  }

    @media (max-width: 768px) {
    .frontend-case-page {
      width: 92vw;
      margin-top: 40px;
    }

    .frontend-panel {
      display: block;
      padding: 24px;
    }

    .frontend-image-start,
    .frontend-image-main,
    .frontend-image-second {
      width: 100%;
      margin: 24px 0 0 0;
    }

    .frontend-text-start {
      font-size: 20px;
      margin-top: 24px;
    }

    .frontend-section-heading {
      font-size: 22px;
      margin-bottom: 24px;
    }
  }
}
}