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

body {
  background: linear-gradient(to bottom, #595959, #737373);
  min-height: 100vh;
  overflow: hidden;
  perspective: 1000px;
}

.description {
  position: fixed;
  bottom: 20px;
  left: 20px;
  color: black;
  padding: 10px 20px;
  z-index: 1000;
  font-family: system-ui, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.search-container {
  margin-bottom: 10px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  padding: 5px 10px;
  font-family: system-ui, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: black;
  width: 150px;
  outline: none;
  transition: all 0.3s ease;
}

.search-input::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

.search-input:focus {
  background: rgba(255, 255, 255, 0.2);
}

.clear-filter, .clear-project-filter {
  background: none;
  border: none;
  color: black;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  margin: 0 0 0 5px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.clear-filter:hover, .clear-project-filter:hover {
  opacity: 1;
}

.description-line {
  display: flex;
  gap: 10px;
  align-items: center;
}

.description-label {
  opacity: 0.7;
}

.project-link {
  cursor: pointer;
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.project-link:hover {
  opacity: 0.7;
}

.credits-link {
  color: black;
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.credits-link:hover {
  opacity: 0.7;
}

.gallery {
  width: 100vw;
  height: 100vh;
  position: relative;
  transform-style: preserve-3d;
}

.image-container {
  position: absolute;
  cursor: grab;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  transform-origin: center center;
  line-height: 0;
  will-change: transform, filter, opacity, left, top;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.image-container:active {
  cursor: grabbing;
}

.gallery-image {
  max-width: 780px;
  max-height: calc(100vh - 120px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: block;
  transition: filter 0.5s ease;
}

.about-button, .unmute-button, .click-anywhere {
  padding: 10px 20px;
  background: none;
  border: none;
  color: black;
  font-family: system-ui, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.4s ease;
  z-index: 1000;
  outline: none;
}

.about-button:focus, .unmute-button:focus {
  outline: none;
}

.about-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
}

.unmute-button {
  position: fixed;
  top: 20px;
  right: 20px;
  opacity: 0.7;
}

.click-anywhere {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  opacity: 1;
  pointer-events: none;
}

.about-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 2000;
}

.about-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.about-content {
  max-width: 700px;
  padding: 40px;
  text-align: center;
  color: white;
  font-family: system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  transform: translateY(20px);
  transition: transform 0.5s ease;
}

.about-overlay.visible .about-content {
  transform: translateY(0);
}

.about-button:hover, .unmute-button:hover {
  opacity: 0.7;
}

/* Filter Icons Styles */
.filter-icons-container {
  position: fixed;
  top: 60px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.filter-icon {
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  opacity: 0.5;
  transition: opacity 0.3s ease, transform 0.2s ease;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-icon:hover {
  opacity: 1;
  transform: scale(1.1);
}

.filter-icon.active {
  opacity: 1;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
  .gallery-image {
    max-width: calc(100vw - 60px);
    max-height: calc(100vh - 100px);
    width: auto;
    height: auto;
    object-fit: contain;
  }

  .description {
    font-size: 10px;
    bottom: 10px;
    left: 10px;
    padding: 8px 16px;
  }

  .search-input {
    font-size: 10px;
    width: 120px;
  }

  .about-button, .unmute-button, .click-anywhere {
    font-size: 10px;
    padding: 8px 16px;
  }

  .about-button {
    bottom: 10px;
    right: 10px;
  }

  .unmute-button {
    top: 10px;
    right: 10px;
  }

  .about-content {
    font-size: 14px;
    padding: 20px;
    margin: 0 20px;
  }

  .filter-icons-container {
    top: 50px;
    right: 10px;
    gap: 8px;
  }

  .filter-icon {
    width: 14px;
    height: 14px;
  }
}
