
/* Overriding the defaults in fontawesome.
   Default font-size is 16px, color
*/
.artifact .fa, .artifact .fas, .artifact .fa-solid, .artifact .fa-brands {
  font-size: 2rem;
  color: rgb(128, 225, 225);
}

.fa-4xl {
  font-size: 4em; /* Adjust size as needed */
}

.fa-3xl {
  font-size: 3em; /* Adjust size as needed */
}

.flex-container {
  display: flex;
  justify-content: center; /* Centers horizontally */
  align-items: center; /* Centers vertically */
}

.flex-container-space {
  display: flex;
  justify-content: space-between; 
  align-items: top; 
}

.flex-gap-small {
  column-gap: 1%;
}

/* Modal "popup" */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8); /* Black background with transparency */
  justify-content: center;
  align-items: center;

}

.modal-content {
  display: inline-block;
  max-width: 80%;
  max-height: 80%;
}

.modal-image {
  min-width: 60vw;
  width: 100%;
  margin: 0;
  padding: 0;
  display: block;
}

.modal-caption-container {
  box-sizing: border-box;
  width: 0px;
  min-width: 100%;
  margin: 0;
  color: white;
  background: rgba(0, 61, 165, 0.8);
  padding: 10px 15px;
  font-size: 1.2rem;
}

.modal-close a:any-link {
  color: rgb(128, 225, 225);
}
.modal-close {
  color: rgb(128, 225, 225);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}

/* Map */

.map {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: left;
  align-items: flex-start;
}

.map-markers {
  display: flex;
  flex-direction: column;
  padding-right: 5em;
  margin-left: 900px;
}

.map-markers a:any-link {
  white-space: nowrap;
}

.map-markers .artifact {
  margin-bottom: 20px;
}

.map-markers .artifact img {
  width: 30vw;
  height: auto; 
  min-width: 320px;
  min-height: auto;
}

.map-markers .artifact .text-overlay {
  font-size: 0.9em;
}

.imageMap-container {
  position: fixed;
  left: 4em;
  display: inline-block;
}

#highlight {
  position: absolute;
  background: rgba(0, 128, 255, 0.5) !important; /* Highlight */
  border: 2px solid rgba(0, 0, 255, 0.8); /* Optional border */
  pointer-events: none; /* Prevent interference with clicks */
  display: none;
}


@media (max-width: 775px) {
  .map {
    flex-direction: column;
  }

  .imageMap-container {
    position: sticky;
    top: 1.4em;
    left: 0;
    z-index: 999;
  }

  .imageMap-container img {
    max-width: 97vw;
    margin: 0;
    padding: 0;
  }

  .map-markers .artifact img {
    width: 90vw;
  }

  .map-markers {
    margin-left: 20px;
    /* overflow-y: scroll; 
    height: 70vh; */
  }
}


/* Youtube embedding */

.video-container {
  position: relative;
  margin: 0 auto;
  padding: 0;
  object-fit: contain;
}

.video-large {
  width: 90vw;
  height: calc(90vw * 9.0 / 16.0);
}

.video-thumbnail {
  width: 320px;
  height: calc(320px * 9.0 / 16.0);
}

.video-container.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999; /* Ensure it overlays all other content */
  background: black; /* Optional: Add a background color */
}

.player.fullscreen {
  position: absolute;
  top: 0;
  left: 0;
}

.player {
  width: 100%;
  height: 100%;
}

.youtube-btn {
position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  margin-left: auto;
  margin-right: auto;

  width: 70px;
}

.replay-btn {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* transform: translate(-50%, -50%); */
  padding: 10px 20px;
  /* background-image: url('assets/img/welcome-thumb.jpg'); */
  background-size: cover; /* Ensures the image covers the entire element */
  background-position: center; /* Centers the image */
  background-repeat: no-repeat; /* Prevents the image from repeating */

  background-color: rgba(0, 0, 0, 0.25); /* Add a semi-transparent black overlay */
  background-blend-mode: darken; /* Blend the overlay with the image */
 
  color: rgb(255, 0, 51);

  cursor: pointer;
  z-index: 10;
}

/* 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);
}

@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;
}

.container {
  margin: 0;
  padding-left: 0px;
  padding-right: 0px;
}

}

/* Landscape mode message */
.landscape-message {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8); /* Semi-transparent black background */
  color: white;
  font-size: 1.5em;
  text-align: center;
  padding: 2em;
  z-index: 9999; /* Ensure it overlays all content */
  justify-content: center;
  align-items: center;
}

/* Show the message in landscape mode on small screens */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .landscape-message {
    display: flex; /* Show the message */
  }
}