html, body {
    background-color: black;
    scroll-behavior: smooth;
    color: grey;
}

h2 {
    font-family: 'Space Mono', monospace;
    font-weight: normal;
    font-size: 1.2em;
    margin-bottom: 20px;
}

h3 {
    font-family: 'Space Mono', monospace;
    font-weight: normal;
    font-size: 1em;
    margin-top: 6px;
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    width: 100vw;
    min-height: 100vh;
    position: relative;
}

.container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    z-index: 2;
    background: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 5vw 3vw 3vw 5vw;
    box-sizing: border-box;
    grid-column: 1 / 2;
    margin-right: 10%;
}

.cover-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    grid-column: 2 / 3;
    z-index: 1;
    margin-left: 0;
}

.cover-image-container img {
    max-height: 90vh;
    width: auto;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    margin-right: 20vw;
    margin-top: -15vh;
}

.carousel-container {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-image-box {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    position: relative;
}

.carousel-image-box img {
    width: auto;
    height: 99vh;
    max-width: 100vw;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: black;
    border: none;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    font-size: 1.2em;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    opacity: 0.85;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s, opacity 0.2s;
}

#carousel-prev {
    left: 12px;
}

#carousel-next {
    right: 12px;
}

.carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px 0;
  margin-top: 40px;
}

.link-row {
  display: grid;
  grid-template-columns: 48px 1fr; /* wider first column */
  align-items: center;
  text-decoration: none;
  background: none;
  border: none;
  padding: 8px 0;
  cursor: pointer;
  transition: background 0.2s;
  column-gap: 40px; /* add or increase this for more space */
  margin-bottom: 20px;
}

.link-row:focus,
.link-row:hover {
  /* background: rgba(200, 117, 173, 0.08); */ /* removed highlight */
  outline: none;
}

.icon-cell {
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-img {
  object-fit: contain;
  transition: transform 0.2s cubic-bezier(.77,0,.18,1);
}

.link-row:hover .icon-img,
.link-row:focus .icon-img {
  transform: scale(1.25);
}

.link-cell img {
  opacity: 0.5;
  transition: opacity 0.3s;
}

.link-row:hover .link-cell img,
.link-row:focus .link-cell img {
  opacity: 1;
}

.link-cell h4 {
  margin: 0;
  font-size: 0.9em;
  font-family: 'Space Mono', monospace;
  font-weight: normal;
  color: inherit;
}

/* Mobile */
@media screen and (max-width: 1023px) {
    .main-layout {
        flex-direction: column;
        align-items: stretch;
    }
    .container {
        position: static;
        width: 100vw;
        min-height: auto;
        padding: 6vw 4vw 4vw 4vw;
        z-index: 2;
    }

    .cover-image-container,
    .carousel-container {
        display: none !important;
    }

    .mobile-carousel-container {
        display: flex;
        width: 100vw;
        justify-content: center;
        align-items: center;
        margin: 32px 0 0 0;
        position: static;
        z-index: 1;
    }
    .mobile-carousel-container .carousel-image-box {
        width: 100vw;
        max-width: 100vw;
        height: auto;
        min-height: 0;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .mobile-carousel-container img {
        width: 100%;
        height: auto;
        max-width: 100vw;
        object-fit: contain;
        display: block;
        margin: 0 auto;
    }
    .mobile-carousel-container .carousel-arrow {
        position: relative;
        top: 0%;
        transform: translateY(-50%);
        background: #ffffff;
        color: black;
        border: none;
        border-radius: 6px;
        width: 32px;
        height: 32px;
        font-size: 1.2em;
        font-family: Arial, Helvetica, sans-serif;
        font-weight: bold;
        cursor: pointer;
        z-index: 10;
        opacity: 0.85;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        transition: background 0.2s, opacity 0.2s;
    }
    #mobile-carousel-prev {
        left: 12px;
    }
    #mobile-carousel-next {
        right: 12px;
    }
    .mobile-carousel-container .carousel-arrow:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }
}

/* Desktop */
@media screen and (min-width: 1024px) {
    .container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Auto-fit columns */
        grid-template-rows: repeat(3, auto); /* 3 rows, auto height */
        gap: 60px; /* Space between grid items */
    }

    .mobile-carousel-container {
    display: none;
}
}