:root {
  --color-text: navy;
  --color-bg: #fff;
  --color-bg-accent: #ecdcc0;
  --size: clamp(10rem, 1rem + 40vmin, 30rem);
  --gap: calc(var(--size) / 14);
  --duration: 60s;
  --scroll-start: 0;
  --scroll-end: calc(-100% - var(--gap));
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-text: papayawhip;
    --color-bg: navy;
    --color-bg-accent: #2626a0;
  }
}



* {
  box-sizing: border-box;
}

body {
  /*display: grid;*/
  /*align-content: center;*/
  /*overflow: hidden;*/
 /* gap: var(--gap);*/
  width:100%;
  min-height:100vh;
  color:var(--color-text);
  background-color:var(--color-bg);
}
article {
    padding-bottom: 7.5vw;
}
.marquee {
  width: 100%;
  height: 33vh;
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: var(--gap);
  flex-wrap: nowrap;
}

.marquee__group {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--gap);
  max-width: 100%;
  animation: scroll-x var(--duration) linear infinite;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
}

@media (prefers-reduced-motion: reduce) {
  .marquee__group {
    animation-play-state: paused;
  }
}

.marquee--vertical {
  --mask-direction: to bottom;
}

.marquee--vertical,
.marquee--vertical .marquee__group {
  flex-direction: column;
}

.marquee--vertical .marquee__group {
  animation-name: scroll-y;
}

.marquee--reverse .marquee__group {
  animation-direction: reverse;
  animation-delay: -3s;
}

@keyframes scroll-x {
  from {
    transform: translateX(var(--scroll-start));
  }
  to {
    transform: translateX(var(--scroll-end));
  }
}

@keyframes scroll-y {
  from {
    transform: translateY(var(--scroll-start));
  }
  to {
    transform: translateY(var(--scroll-end));
  }
}

/* Element styles */
.marquee svg {
  display: grid;
  place-items: center;
  width: var(--size);
  fill: var(--color-text);
  background: var(--color-bg-accent);
  aspect-ratio: 16/9;
  padding: calc(var(--size) / 10);
  border-radius: 0.5rem;
}

.marquee--vertical svg {
  aspect-ratio: 1;
  width: calc(var(--size) / 1.5);
  padding: calc(var(--size) / 6);
}

.marquee__group h3 {
  text-align: center;
  font-family: 'Pretendard';
  font-style: normal;
  font-weight: 700;
  margin-top: 10px;
  font-size: 12px;
  line-height: 14px;
  color: #014099;
  color:#15e4cd;
}

.marquee__group p {
  color:#4B4B4B;
  color:#000;
  color:#fff;
  text-align: center;
  /*list-style: -0.02;*/
  font-family: 'Pretendard';
  font-style: normal;
  font-weight: 400;
  font-size: 11px;
  line-height: 14px;
  margin-top: 5px;
  word-break: keep-all;
  padding: 0 1.3em;
}

.marquee--reverse {
  height: 34vh;
}

.marquee__group div {


  height: 100%;
  width: 30%;
  max-width: 130px;
  /* float: left; */
}

.marquee__group img {
  display: block;
  margin: auto;
  width: 100%;
  height: auto;
  max-width: 190px;
}


/* Parent wrapper */
.wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  margin: auto;
  max-width: 100vw;
  width: 100%;
  height: auto;
}

.wrapper--vertical {
  flex-direction: row;
  height: 100vh;
}

/* Toggle direction button */
.toggle {
  --size: 3rem;
  position: relative;
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: var(--size);
  height: var(--size);
  font: inherit;
  text-align: center;
  cursor: pointer;
  outline: none;
  border: none;
  border-radius: 50%;
  color: inherit;
  background-color: var(--color-bg-accent);
  z-index: 1;
}

.toggle:focus-visible {
  box-shadow: 0 0 0 2px var(--color-text);
}

.toggle span {
  position: absolute;
  display: inline-block;
  top: 50%;
  left: calc(100% + 0.4em);
  width: fit-content;
  white-space: nowrap;
  transform: translateY(-50%);
  animation: fade 400ms 4s ease-out forwards;
  user-select: none;
}

.toggle svg {
  --size: 1.5rem;
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--size);
  height: var(--size);
  fill: currentcolor;
  transform: translate(-50%, -50%);
  transition: transform 300ms cubic-bezier(0.25, 1, 0.5, 1);
}

.toggle--vertical svg {
  transform: translate(-50%, -50%) rotate(-90deg);
}


/* 미디어쿼리 시작 */

@media all and (max-width:100vw) {
  .marquee {
    height: 350px;
  }
  .marquee__group h3 {
    font-size: 14px;
  }
  
  .marquee__group p {
    font-size: 12px;
  }
  
  .marquee__group img {
    min-width: 114px;
  }
  
}

@media all and (max-width:1440px) {

  .marquee {
    height: 300px;
  }

  .marquee__group h3 {
    font-size: 11px;
  }
  
  .marquee__group p {
    font-size: 10px;
  }

}
@media (min-width:1120px) and (max-width:100vw) {

  .marquee {
    width: 100%;
    height: none;
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: var(--gap);
    /* mask-image: linear-gradient(
      var(--mask-direction, to right),
      hsl(0 0% 0% / 0),
      hsl(0 0% 0% / 1) 20%,
      hsl(0 0% 0% / 1) 80%,
      hsl(0 0% 0% / 0)
    ); */
    flex-wrap:none;
  }

  .marquee__group {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    /* justify-content: space-around; */
    gap: var(--gap);
    max-width: 100%;
    animation: scroll-x var(--duration) linear infinite;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: none;
  }

  .marquee__group div {
    height: 100%;
    width: 120%;
    max-width:1920px;
    /* float: left; */
  }
}

@media all and (max-width:1024px) {
  .marquee {
    height: 260px;
  }

  .marquee h3 {
    font-size: 11px;
  }

  .marquee p {
    font-size: 10px;
  }

  .marquee--reverse {
    height: 250px;
  }
}
@media (min-width:768px) and (max-width:1023px) {
    article {
        padding-bottom:14.5vw;
    }
}

@media all and (max-width:768px) {
    
    article {
        padding-bottom:10.5vw;
    }
    
  .marquee {
    height: 250px;
  }

  .marquee h3 {
    font-size: 10px;
  }

  .marquee p {
    font-size: 9px;
  }
}


@media all and (max-width:700px) {
  .marquee {
    height: 250px;
  }

  .marquee h3 {
    font-size: 10px;
  }

  .marquee p {
    font-size: 9px;
  }
}


@media all and (max-width:767px) {
  .marquee__group {
      animation: scroll-x 30s linear infinite;
    }
}

@media all and (max-width:376px) {
  .marquee {
    height: 250px;
  }

  .marquee h3 {
    font-size: 10px;
  }

  .marquee p {
    font-size: 9px;
  }

  .marquee__group div {
    width: 30%;
  }
  
}


@media all and (max-width:320px) {
  .marquee {
    height: 270px;
  }

  .marquee h3 {
    font-size: 10px;
  }

  .marquee p {
    font-size: 9px;
  }

  .marquee__group div {
    width: 40%;
  }
  
}








@keyframes fade {
  to {
    opacity: 0;
    visibility: hidden;
  }


  

}
