/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BASE */
body {
  font-family: Helvetica, Arial, sans-serif;
  background: #ffffff;
  color: #111;
}

/* LAYOUT */
.container {
  display: flex;
  height: 100vh;
  align-items: flex-start;
}

/* SIDEBAR */
.sidebar {
  width: 210px;
  padding: 40px 25px;
  border-right: 1px solid #f0f0f0;
  flex-shrink: 0;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* TOP PART */
.sidebar-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* HEADER */
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 24px;
  width: 100%;
}

/* TITLE */
.site-title {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: lowercase;
  line-height: 1.1;
}

.site-title,
.site-title a,
.site-title a:visited,
.site-title a:hover,
.site-title a:active {
  color: #111;
  text-decoration: none;
}

/* SOCIAL LINKS */
.social-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #999;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  line-height: 1;
}

.social-link:hover {
  color: #111;
  transform: translateY(-1px);
}

.social-link svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

/* Facebook optical alignment fix */
.facebook-link svg {
  position: relative;
  top: -2px;
}

/* SERIES LIST - DESKTOP */
.series-list {
  display: block;
  width: 100%;
}

.series-list a {
  display: block;
  width: 100%;
  text-decoration: none;
  color: #999;
  margin-bottom: 10px;
  font-size: 13px;
  letter-spacing: 0.3px;
  line-height: 1.2;
  transition: color 0.2s ease, transform 0.2s ease;
}

.series-list a:hover {
  color: #666;
  transform: translateX(2px);
}

.series-list a.active {
  color: #111;
}

/* BOTTOM PART */
.sidebar-bottom {
  margin-top: auto;
  padding-top: 20px;
  width: 100%;
}

/* COPYRIGHT */
.copyright {
  font-size: 11px;
  line-height: 1.3;
  color: #b0b0b0;
  text-align: left;
}

/* MAIN CONTENT */
.content,
.gallery {
  flex: 1;
}

.content {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 40px;
}

.intro p {
  font-size: 14px;
  color: #aaa;
  letter-spacing: 0.5px;
}

/* DESKTOP GALLERY */
.gallery {
  overflow: hidden;
}

.scroll-container {
  display: flex;
  align-items: center;
  height: 100vh;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  gap: 20px;
  padding: 20px 30px;
  cursor: grab;

  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scroll-container::-webkit-scrollbar {
  display: none;
}

/* IMAGES */
img {
  -webkit-user-drag: none;
  user-select: none;
}

.scroll-container img {
  display: block;
  height: 92vh;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  pointer-events: none;
}

.scroll-container img:hover {
  opacity: 0.98;
}

/* MOBILE */
@media (max-width: 768px) {
  .container {
    display: block;
    height: auto;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #eeeeee;
    padding: 18px 20px;
  }

  .sidebar-header {
    margin-bottom: 14px;
  }

  .site-title {
    font-size: 14px;
  }

  .social-links {
    gap: 12px;
  }

  .social-link svg {
    width: 18px;
    height: 18px;
  }

  .facebook-link svg {
    top: -1px;
  }

  /* SERIES LIST - MOBILE */
  .series-list {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 10px;
  }

  .series-list a {
    width: auto;
    margin-bottom: 0;
    font-size: 13px;
  }

  .sidebar-bottom {
    margin-top: 10px;
    padding-top: 0;
  }

  .copyright {
    font-size: 10px;
    color: #b8b8b8;
  }

  .content,
  .gallery {
    overflow: visible;
    padding-top: 0;
  }

  .scroll-container {
    display: block;
    height: auto;
    overflow: visible;
    padding: 12px 12px 24px;
    cursor: default;
  }

  .scroll-container img {
    width: 100%;
    height: auto;
    max-height: none;
    margin-bottom: 12px;
  }

  .scroll-container img:last-child {
    margin-bottom: 0;
  }
}

/* HOMEPAGE RANDOM PREVIEW */
.homepage-preview {
  width: 100%;
  height: calc(100vh - 40px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 30px;
}

#random-preview {
  max-width: 100%;
  max-height: 92vh;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  transition: opacity 0.6s ease;
}

@media (max-width: 768px) {
  .homepage-preview {
    height: auto;
    padding: 12px 12px 24px;
  }

  #random-preview {
    width: 100%;
    max-width: 100%;
    max-height: none;
    height: auto;
  }
}