/* Fairview Collections / Artifacts */

.breadcrumbs {
  position: sticky;
  display: flex;
  top: 0;
  gap: 5px;
  align-items: center;
  font-size: 1.2em;
  background: white;
  padding: 0 2.5em;
  padding-bottom: 0.2em;
  z-index: 999;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Added drop shadow */

}

.breadcrumbs img {
  width: 50px;
  display: none;
}

.collection {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 0.3rem;
}

.artifact {
  position: relative;
  display: inline-block;
}

.artifact > img {
  display: block;
  object-fit: cover;
  min-width: 640px;
  min-height: 480px;
}

.article {
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
  padding-left: 2em;
  padding-right: 2em;
}

.article p {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

.preview > img, .preview .video-container {
  width: 640px;
  height: 480px; 
}

.preview {
  cursor: pointer;
}

.large {
  height: 70vh;
}

.artifact .text-overlay, .text-ovelay {
  position: absolute;
  width: 100%;
  bottom: 0;
  right: 0;
  color: white;
  background: rgba(0, 61, 165, 0.5);
  padding: 10px 15px;
  font-size: 1.2em;
  transition: color 0.2s, background 0.2s;
}

.artifact .text, .text {
  width: 0;
  min-width: 100%;
  bottom: 0;
  right: 0;
  color: white;
  background: rgba(0, 61, 165, 0.8);
  padding: 10px 15px;
  font-size: 1.2rem;
  box-sizing: border-box;
  transition: color 0.2s, background 0.2s;
}

.artifact:hover .text-overlay.hover,
.artifact:hover .text.hover.hover {
  background: rgba(80, 0, 88, 0.7);
}

/* OpenSeadragon Overlays */
.overlay {
    border: 2px solid rgba(0, 0, 0, 0.9);
    border-radius: 50%;
    background-color: transparent;
    color: white;
    white-space: nowrap;
    text-shadow: 0px 1px 2px rgb(0 0 0 / 80%);

    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.overlay:hover {
    opacity: 1;
}
.overlay-label {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    text-shadow: 0px 2px 4px rgb(0 0 0 / 80%);
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0px 2px 4px rgb(0 0 0 / 80%);
    border-radius: 5px;
    padding: 5px 10px;
    white-space: nowrap;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

@media (max-width: 775px) {
  .artifact > img {
    display: block;
    object-fit: cover;
    min-width: 375px;
    min-height: 250px;
  }

  .preview > img {
    width: 375px;
    height: 250px; 
  }

  .breadcrumbs {
    position: -webkit-sticky; /* For Safari on iOS */
    position: sticky;
    display: flex;
    width: 100%;
    height: auto;
    top: 0;
    gap: 5px;
    align-items: center;
    background: white;
    font-size: 1em;
    z-index: 999;
    margin: 0;
    padding: 0;
    padding-left: 10px;
  }

  .breadcrumbs img {
    width: 30px;
  }

  .breadcrumb {
    white-space: nowrap;
  }

  .artifact {
    width: 100%;
  }

  .artifact img {
    width: 100%;
    height: auto;
  }

  .article img {
    width: 100%;
    height: auto;
  }
}