.gallery {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 1rem;
}

.gallery > aside {
  align-self: start;
}

.aside-div {
  padding: 0.5rem;
  margin-bottom: 1rem;
}

.gallery-container {
  padding: 1rem;
}

.gallery-img {
  padding: 5px;
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 0.1px solid rgb(252, 235, 255, 0.7);
  opacity: 0.6;
  transition: opacity 0.3s ease;

  &:hover {
    opacity: 1;
  }
}

.gallery-p img {
  display: inline-block;
  vertical-align: middle;
}

.list-content {
  display: none;
}

@media (min-width: 90rem) {
  .gallery-img {
    width: 125px;
    height: 125px;
  }
}

@media (max-width: 50rem) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery-img {
    width: 75px;
    height: 75px;
  }

  .gallery aside {
    display: none;
  }
}

.list-content li {
  position: relative;
}

.custom-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background-color: var(--text-color);
  color: var(--color-nav-bar);
  padding-inline: 0.3rem;
  font-size: 14px;
  white-space: nowrap;
  border: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
  z-index: 10;
}
.list-content li:hover .custom-tooltip {
  opacity: 1;
  visibility: visible;
}

.aside-div {
  position: relative;
}

.aside-div:hover .custom-tooltip {
  opacity: 1;
  visibility: visible;
}

.tab-active.list-content {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 15px;
  width: 100%;
}

.tabs-header {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.list-header {
  border: 1px solid var(--header-bg);
  background-color: var(--color-nav-bar);
  padding-inline: 0.3rem;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  margin-bottom: 1rem;

  &:hover {
    background-color: var(--header-bg);
    border: 1px solid var(--color-nav-bar);
  }
}

.tab-active.list-header {
  background-color: var(--header-bg);
  border: 1px solid var(--color-nav-bar);
}

.gallery-style {
  border: 1px solid var(--header-bg);
  background-color: hsla(263, 30%, 15%, 0.8);
}

#image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85); 
  z-index: 9999; 
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: pointer;
}

#image-overlay.overlay-active {
  opacity: 1;
  visibility: visible;
}

#overlay-img {
  max-width: 90vw; 
  max-height: 90vh; 
  object-fit: contain; 
}

.gallery-img {
  cursor: pointer;
}