/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #000;
  background-color: #fff;
  overflow-x: hidden;
}

li.emphasize, p.emphasize{
  font-size: 3vh;
  /*color: #ff5050 !important;*/
  text-decoration: overline;
}

a {
  text-decoration: none;
  color: #000;
}

a:hover {
  color: #333;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background-color: #fff;
  z-index: 100;
}

nav ul {
  display: flex;
  gap: 20px;
}

nav a {
  font-size: 14px;
  text-transform: lowercase;
}

nav a:hover {
  text-decoration: underline;
}

.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.logo img {
  width: 60px;
  height: 60px;
  margin: 0 auto;
}

.artist-name {
  font-size: 14px;
  letter-spacing: 1px;
  font-weight: 500;
}

.social img {
  width: 20px;
  height: 20px;
}


/* Gallery Sections */
.gallery-section {
  margin-bottom: 40px;
}

.section-title {
  font-size: 18px;
  font-weight: normal;
  margin: 30px 0 15px 20px;
  letter-spacing: 1px;
}


/* Horizontal Gallery */
.horizontal-gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 40px 0;
  height: calc(100vh - 80px); /* Adjust based on header height */
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1;
}

.horizontal-gallery::-webkit-scrollbar {
  height: 8px;
}

.horizontal-gallery::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.horizontal-gallery::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.horizontal-gallery::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.gallery-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  position: relative;
  margin-right: 20px;
  height: 100%;
  cursor: pointer;
}

.gallery-item-digital {
  flex: 0 0 auto;
  scroll-snap-align: start;
  position: relative;
  margin-right: 20px;
  height: 65%;
  cursor: pointer;
}

.gallery-item:last-child {
  margin-right: 40px; /* Add extra space at the end */
}

.artwork-image {
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* Overlay */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none; /* Allow clicks to pass through to the image */
}

.gallery-item:hover .overlay,
.gallery-item.touch-active .overlay {
  opacity: 1;
}

.artwork-info {
  color: white;
  text-align: center;
  padding: 20px;
  max-width: 300px;
}

.artwork-info h3 {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: normal;
}

.artwork-info p {
  font-size: 14px;
  margin-bottom: 5px;
  opacity: 0.9;
}

/* Content pages */
.content {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

h1 {
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: normal;
}

h2 {
  font-size: 18px;
  margin: 30px 0 10px;
  font-weight: normal;
}

p {
  margin-bottom: 20px;
}

.content ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.content li {
  margin-bottom: 5px;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
  position: relative;
  margin: auto;
  padding: 0;
  width: 80%;
  max-width: 900px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#lightbox-img {
  max-height: 80vh;
  max-width: 100%;
  object-fit: contain;
}

#lightbox-caption {
  color: white;
  padding: 10px 0;
  text-align: center;
}

.close {
  position: absolute;
  top: 15px;
  right: 15px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .horizontal-gallery {
    height: calc(100vh - 70px);
  }

  .artwork-info {
    padding: 15px;
    max-width: 250px;
  }

  .artwork-info h3 {
    font-size: 16px;
  }

  .artwork-info p {
    font-size: 12px;
  }

  .logo img {
    width: 50px;
    height: 50px;
  }

  .artist-name {
    font-size: 12px;
  }

  header {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .horizontal-gallery {
    height: calc(100vh - 60px);
  }

  nav ul {
    gap: 15px;
  }

  nav a {
    font-size: 12px;
  }

  .artwork-info {
    padding: 10px;
    max-width: 200px;
  }
}
