.card-block {
  display: flex;
  flex-flow: column nowrap;
  padding: var(--p-2);
  overflow-y: auto;
}

#gallery {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    gap: var(--p-2);
}

.galleryitem {
    flex: 0 0 23.9%;
    aspect-ratio: 1/1;
    background: var(--light);
    overflow: hidden;

    img {
        height: 100%;
        aspect-ratio: 1/1;
        object-fit: cover;
        user-select: none;
    }

    img:hover {
      border: 1px dashed var(--green);
    }
}

#info {
  background: var(--light);
  margin: var(--p-2) -.4em -.4em -.4em;
  padding: var(--p-2);
}

#info:blank {
  padding: 0;
}

#tags {
  align-self: self-start;
}

#feature {
    display: flex;
    flex-direction: column;
    justify-content: center; 

    img {
      object-fit: contain;
      max-width: 100%;
    }

    p {
      padding-top: var(--p-2);
    }
}

#myPanzoom {
  height: 28em;
  padding: var(--p-2);
}

#controls {
  display: flex;
  flex-flow: row nowrap;
  justify-content: right;
  gap: var(--p-2);
  padding-bottom: var(--p-2);
  border-bottom: var(--dotted);
  background: var(--white);
}

#controls a:first-child {
  margin-right: auto;
}
  
.pagination {
  padding-bottom: var(--p-2);
  border-bottom: var(--dotted);

  .row {
    display: flex;
    align-items: center;
    flex: 1;

    div:nth-child(3) {
      text-align: right;
    }
  }
  
  ul {
    list-style-type: none;
    display: flex;
    gap: var(--p-2);
    justify-content: center;
  }

  li {
    user-select: none;
  }

  li.active {
    background: var(--white);
    color: var(--faded);
    outline: 0;
  }
}