@font-face {
      src: url('fonts/Doto_Rounded-Medium.ttf');
      font-family: "Doto_Rounded-Medium"
}

@font-face {
  src: url('fonts/OOArketaTrial-Regular.otf');
  font-family: "Arketa"
}

html, body {
  height: 100%;
}

footer {
  width: 100%;
  color: #000000;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  text-align: center;
}

#arketabody {
  font-family: "Arketa";
}

#captiontext {
    font-family: "Doto_Rounded-Medium";
    font-size: 14px;
}
.red-bg {
        background-color: red;
      }
.nav-link {
      font-size: 24px;
      animation: flash 1s linear;
}
.nav-link:hover {
      background-color: yellow;
      box-shadow: 4px 4px 8px pink;
}

body {
  background-color: #ffffff;
  color: #000000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.container {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  padding: 7px;
}

.rolling-footer-text {
  text-transform: uppercase;
  display: inline-flex;
  font-family: "Doto_Rounded-Medium";
  font-size: 1rem;
  overflow-x: hidden;
  padding-left: 100%;
  animation: scrollText 75s linear infinite;
}

@keyframes scrollText {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.content {
  flex: 1 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.mid-gutter {
  height: 42px;
  flex-shrink: 0;
}

.bottom-footer-text {
    font-family: "Arketa";
    font-size: 10px;
    display: flex;
    justify-content: space-between;
    width: 100%;
    color: gray;
  }

  .justifybetween{
    justify-content: space-between;
  }
  .flex{
    display: flex;
  }
  
  .stamp-icon{
 padding: 0.875em;
 border: none;
 max-height: 56px;
}

.logo-size{
  max-width: 84px;
}

  #main-header{
    min-height: 70px;
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-left: 14px;
    margin-right: 14px;
    margin-top: 7px;
  }

.button1{
background-color: white;
border: none;
font-family:"Arketa";
font-size: 12px;
color: grey;
width: 84px;
height: 56px;
cursor: pointer;
}

.logo-button{
  max-width: 84px;
  min-height: 56px;
  border: none;
  background: none;
  cursor: pointer;
}

.button1:hover,
.button1--active {
  font-family: "Doto_Rounded-Medium";
  color: white;
  background-color: #ff0000;
}

.button1:active {
  color: white;
  background-color: #ff0000;
}



.flex-container {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: stretch;
  min-height: px;
}

.flex-item {
  background: #e8e8e8;
  padding: 1em 1em;
  height: 42px;
  width: 56px;
}

.about_info-container{
  pointer-events: none;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 1rem;
  position: absolute;
}

.about_info-active .about_info{
  display: block;
}

.about_info {
    pointer-events: auto;
    overflow-y: auto;
    display: none;
    position: relative;
    max-width: 500px;
    max-height: 500px;
    padding: 1rem 4rem 1rem 1rem;
    border: 1px solid;
    background: #fff;
}

.top-gutter {
  height: 28px;
  flex-shrink: 0;
}
.bottom-gutter {
  height: 14px;
  flex-shrink: 0;
}

#footer-height{
  height: auto;
}

/* ── Carousel ── */

.carousel-section {
  position: relative;
  width: 100%;
  flex: 1;
  overflow: visible;
}

/* Preview — fills the section, centres image at natural ratio */
.carousel-preview {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.35s ease, background-color 0.35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#carouselPreviewImg {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  display: none;
}

/* Strip — full viewport width, centred vertically over the preview */
.carousel-strip {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  transform: translate(-50%, -50%);
  z-index: 1;
  overflow-x: scroll;
  overflow-y: visible;
  scrollbar-width: none;
  cursor: ew-resize;
}

.carousel-strip::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  display: flex;
  flex-direction: row;
  gap: 0;
  padding: 0;
  margin: 0 auto;
  width: max-content;
}

.carousel-item {
  flex: 0 0 auto;
  margin: 0;
  cursor: pointer;
}

.carousel-thumb {
  width: auto;
  max-width: none;
  height: 56px;
  display: block;
  /*transition: opacity 0.2s ease; */
}

.carousel-item:hover {
  background-color: red;
}

.carousel-item:hover .carousel-thumb {
  filter: grayscale(100%);
  mix-blend-mode: lighten;
}

/* Caption — centred, below the preview section */
.carousel-footer {
  text-align: center;
  padding: 10px 24px;
  height: 22px;
  font-size: 12px;
}

.carousel-link {
  visibility: hidden;
  font-family: "Arketa";
  font-size: 12px;
  color: #0000EE;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.carousel-link:visited {
  color: #0000EE;
}

.carousel-link:hover {
  color: #0000EE;
}

/* ── About Modal ── */

.about-modal {
  display: none;
  position: fixed;
  width: 480px;
  z-index: 9999;
  font-family: "Doto_Rounded-Medium";
}

.about-modal--open {
  display: block;
}

.about-box {
  background: #ffffff;
  border: 1px solid #000000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.about-header {
  background: #000000;
  color: #ffffff;
  font-family: "Doto_Rounded-Medium";
  font-size: 13px;
  padding: 8px 12px;
  cursor: move;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.about-body {
  padding: 20px 16px 12px;
  font-family: "Arketa";
  font-size: 12px;
  line-height: 1.7;
  overflow-y: auto;
  color: gray;
}

.about-body p {
  margin: 0 0 16px;
}

.about-downloads {
  padding: 8px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-download-link {
  display: inline-block;
  font-family: "Arketa";
  font-size: 12px;
  color: #0000EE;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Close button — inside the header bar */
.about-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #ffffff;
  line-height: 1;
}

.close-x {
  font-size: 18px;
  display: block;
}


/* ── Gallery Navigation Arrows ── */

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  color: #888888;
  display: flex;
  align-items: center;
}

.gallery-nav:hover {
  color: #ff0000;
}

.gallery-nav--prev { left: 14px; }
.gallery-nav--next { right: 14px; }

/* ── Project Gallery Panel ── */

.gallery-anchor {
  position: relative;
  height: 0;
  width: 100%;
}

.gallery-panel {
  position: absolute;
  bottom: 0;
  right: 14px;
  width: fit-content;
  z-index: 100;
  background: #ffffff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 84px);
  /*gap: 2px; */
}

.gallery-thumb {
  width: 84px;
  height: 56px;
  overflow: hidden;
  background: #e8e8e8;
  display: block;
  font-size: 100px;
}

.gallery-thumb img {
  filter: grayscale(100%);
}

.gallery-thumb:hover,
.gallery-thumb.active {
  background-color: red;
}

.gallery-thumb:hover img,
.gallery-thumb.active img {
  filter: grayscale(100%);
  mix-blend-mode: lighten;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
  display: block;
}

/* ── Mobile ── */

@media (max-width: 768px) {

  /* Body — prevent overflow scroll */
  body {
    height: 100svh;
    overflow: hidden;
  }

  /* Header — tighter margins */
  #main-header {
    margin-left: 7px;
    margin-right: 7px;
    margin-top: 0;
  }

  /* Gutters — reduce to preserve vertical space */
  .top-gutter    { height: 14px; }
  .mid-gutter    { height: 14px; }
  .bottom-gutter { height: 7px; }

  /* Carousel footer — reduce height */
  .carousel-footer {
    height: 18px;
    padding: 6px 12px;
  }

  /* Gallery nav arrows — bring inward */
  .gallery-nav--prev { left: 4px; }
  .gallery-nav--next { right: 4px; }

  /* Hide thumbnail grid panel on project pages */
  .gallery-anchor,
  .gallery-panel {
    display: none;
  }

  /* Modals — full-width, vertically centred, override JS inline positioning */
  .about-modal {
    width: calc(100vw - 28px) !important;
    max-height: 80svh !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }

  /* Modal box — flex column so body can scroll */
  .about-box {
    max-height: 80svh;
    display: flex;
    flex-direction: column;
  }

  /* Modal body — grows and scrolls */
  .about-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
  }

  /* Drag handle — not useful on touch */
  .about-header {
    cursor: default;
  }
}

/* ── Very small screens only (≤400px) ── */

@media (max-width: 400px) {

  .button1 {
    width: 56px;
    height: 56px;
    font-size: 9px;
  }

  .logo-button {
    max-width: 56px;
    min-height: 56px;
  }

  .rolling-footer-text {
    font-size: 0.65rem;
  }
}
