:root {
    --voyageur: blue ;
    --mountaineer: red;
    --hudson-bay: #000000; 
    --voyaneer: #000000;
    --voyageurboys: #0A6DFF;
    --voyageurgirls: #210AFF;
    --voyageurall-gender: #0AE8FF;
    --mountaineerboys: #FF0036;
    --mountaineergirls: #FF4900;
    --mountaineerall-gender: #FF00B6;
    --hudson-bayboys: #FF0036;
    --hudson-baygirls: #FF4900;
    --hudson-bayall-gender: #FF00B6;
    --voyaneerboys: #000000;
}

[data-theme="dark"] {
    --text-secondary: #f7f1f1;
    --link: #12f0fc;
}

h2 {
    font-size: 1.55rem; /*2rem*/
}

a {
    color: var(--link);
}

/* display the associated background image on the trip pages */
.plaque {
    background-repeat: no-repeat;
    height: 300px;
    background-position: 30%;
    background-size: auto;
}

.plaque.voyageur {
    background-image: url('/images/Voyageur.png');
}

.plaque.mountaineer {
    background-image: url('/images/Mountaineer.png');
}

.plaque.hudson-bay {
    background-image: url('/images/Hudson Bay.png');
}

/*------------------- Simile Exhibit ----------------*/
.guts{
	display:none;
}

/*------------------- Timeline: Horizontal / Vertical lines ----------------*/
/* style for ethers */
.timeline-ether-lines{border-color:#666; border-style:dotted; position:absolute;}
.timeline-horizontal .timeline-ether-lines{border-width:0 0 0 1px; height:100%; top: 0; width: 1px;}

/*-------------------------- HIGHLIGHT DECORATORS -------------------*/
.timeline-highlight-decorator,
.timeline-highlight-point-decorator{
	position:absolute;
	overflow:hidden;
}
.timeline-horizontal .timeline-highlight-point-decorator,
.timeline-horizontal .timeline-highlight-decorator{
	width:10px;
	top:0;
   height:100%;
}

.timeline-highlight-decorator{background-color:#FFC080;}
.timeline-highlight-point-decorator{background-color:#ff5;}
/*---------------------------- LABELS -------------------------*/
.timeline-highlight-label{position:absolute;overflow:hidden;font-size:200%;font-weight:bold;color:#999;}
/*---------------- VERTICAL LABEL -------------------*/
.timeline-horizontal .timeline-highlight-label{top:0;height:100%;}
.timeline-horizontal .timeline-highlight-label td{vertical-align:middle;}
.timeline-horizontal .timeline-highlight-label-start{text-align:right;}
.timeline-horizontal .timeline-highlight-label-end{text-align:left;}

/*---------------- HORIZONTAL LABEL -------------------*/
.timeline-vertical .timeline-highlight-label{left:0;width:100%;}
.timeline-vertical .timeline-highlight-label td{vertical-align:top;}
.timeline-vertical .timeline-highlight-label-start{text-align:center;}
.timeline-vertical .timeline-highlight-label-end{text-align:center;}

/*-------------------------------- DATE LABELS --------------------------------*/
.timeline-date-label{position:absolute;border:1px solid #aaa;color:#0D0D0D;width:5em;height:1.5em;}
.timeline-date-label-em{color:#0D0D0D;}

/* horizontal */
.timeline-horizontal .timeline-date-label{padding-left:2px;}
.timeline-horizontal .timeline-date-label{border-width:0 0 0 1px;}
.timeline-horizontal .timeline-date-label-em{height:2em}

/*------------------------------- Ether.highlight -------------------------*/
.timeline-ether-highlight{position:absolute; background-color:#ECF5F6;}
.timeline-horizontal .timeline-ether-highlight{top:2px;}

/*------------------------------ EVENTS ------------------------------------*/
.timeline-event-icon, .timeline-event-label,.timeline-event-tape{
	position:absolute;
	cursor:pointer;
}

.timeline-event-icon {
	margin-right: 2px;
}

.timeline-event-label {
	margin-left: 10px;
	font-size: 1em;
	color: #0D0D0D;
}

.timeline-event-tape, .timeline-small-event-tape, .timeline-small-event-icon{
	background-color:#396;
	overflow:hidden;
}

.timeline-small-event-tape, .timeline-small-event-icon{
	position:absolute;
}

.timeline-event-tape{height:4px;}
.timeline-small-event-tape{height:2px;}
.timeline-small-event-icon{width:1px; height:6px;}

/*--------------------------------- TIMELINE-------------------------*/
.timeline-ether-bg{width:100%; height:100%;}
/**/
.timeline-band-0 .timeline-ether-bg{background-color:#eee}
.timeline-band-1 .timeline-ether-bg{background-color:#ddd}
.exhibit-toolboxWidget-popup {display: none}
/*.exhibit-legendWidget {display: none}
.timeline-band-2 .timeline-ether-bg{background-color:#98A5A6}
.timeline-band-3 .timeline-ether-bg{background-color:#aaa} */
.exhibit-resizableDivWidget-resizer {display: none}

/*--------------------------------- Exhibit tble zebra stripes-------------------------*/
tr:nth-child(even) {
  background-color: var(--menu-bg);
}

/*div.exhibit-bookmarkWidget-popup:before {
    content: " Click on the 'bookmark' icon to get a URL you can use to go directly to the current state of your filtered browsing: ";
}*/

div.exhibit-color-legend:before {
    content: "Legend: ";
}

div.exhibit-views-unplottableMessage { display: none;}

/* for alt facets on top vs in menu */
span.facet-blocks {
display: inline-block;
text-align: left;
padding:5px;
border: 1px solid rgba(68, 85, 0, 0.36);
border-radius: 6px;
vertical-align: top;
height:130px;
}

lite-youtube {
    background-color: #000;
    position: relative;
    display: block;
    contain: content;
    background-position: center center;
    background-size: cover;
    cursor: pointer;
    max-width: 720px;
}

/* gradient */
lite-youtube::before {
    content: attr(data-title);
    display: block;
    position: absolute;
    top: 0;
    /* Pixel-perfect port of YT's gradient PNG, using https://github.com/bluesmoon/pngtocss plus optimizations */
    background-image: linear-gradient(180deg, rgb(0 0 0 / 67%) 0%, rgb(0 0 0 / 54%) 14%, rgb(0 0 0 / 15%) 54%, rgb(0 0 0 / 5%) 72%, rgb(0 0 0 / 0%) 94%);
    height: 99px;
    width: 100%;
    font-family: "YouTube Noto",Roboto,Arial,Helvetica,sans-serif;
    color: hsl(0deg 0% 93.33%);
    text-shadow: 0 0 2px rgba(0,0,0,.5);
    font-size: 18px;
    padding: 25px 20px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

lite-youtube:hover::before {
    color: white;
}

lite-youtube::after {
    content: "";
    display: block;
    padding-bottom: calc(100% / (16 / 9));
}

lite-youtube > iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border: 0;
}

/* play button */
lite-youtube > .lyt-playbtn {
    display: block;
    /* Make the button element cover the whole area for a large hover/click target… */
    width: 100%;
    height: 100%;
    /* …but visually it's still the same size */
    background: no-repeat center/68px 48px;
    /* YT's actual play button svg */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 68 48"><path d="M66.52 7.74c-.78-2.93-2.49-5.41-5.42-6.19C55.79.13 34 0 34 0S12.21.13 6.9 1.55c-2.93.78-4.63 3.26-5.42 6.19C.06 13.05 0 24 0 24s.06 10.95 1.48 16.26c.78 2.93 2.49 5.41 5.42 6.19C12.21 47.87 34 48 34 48s21.79-.13 27.1-1.55c2.93-.78 4.64-3.26 5.42-6.19C67.94 34.95 68 24 68 24s-.06-10.95-1.48-16.26z" fill="red"/><path d="M45 24 27 14v20" fill="white"/></svg>');
    position: absolute;
    cursor: pointer;
    z-index: 1;
    filter: grayscale(100%);
    transition: filter .1s cubic-bezier(0, 0, 0.2, 1);
    border: 0;
}

lite-youtube:hover > .lyt-playbtn,
lite-youtube .lyt-playbtn:focus {
    filter: none;
}

/* Post-click styles */
lite-youtube.lyt-activated {
    cursor: unset;
}
lite-youtube.lyt-activated::before,
lite-youtube.lyt-activated > .lyt-playbtn {
    opacity: 0;
    pointer-events: none;
}

.lyt-visually-hidden {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

/* to prevent anchor links from disappearing under the top bar */
div[id] {
    scroll-margin-top: 100px;
}

/* page numbers in asfw */
.top, .bottom{
    width: 10%;
    margin: auto;
    font-weight: bold;
}

/* styles for nav with paginated results */
.pagination {
  display: flex;
  justify-content: center;
  list-style: none; /* remove list bullets */
  padding: 10px 0;
}   

.pagination li  a {
  display: block; /* let links fill the list item */
  padding: 8px 12px;
  text-decoration: none;
  /*border: 1px solid gray;*/
  border: 1px solid var(--border);
  color: var(--text-primary);
  margin: 0 4px;
  border-radius: 5px; /* add rounded borders */
}

.pagination li a.active {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.pagination li a.disabled {
  color: var(--text-secondary);
  cursor: not-allowed;
  pointer-events: none;
}

/* Share Button */
.share-container {
    position: relative;
    /*display: inline-block;*/
    margin-bottom: 2rem;
    float: right;
}

.share-button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 2px 4px var(--shadow);
}

.share-button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow);
}

.share-button:active {
    transform: translateY(0);
}

.share-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
    z-index: 100;
}

.share-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.share-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border);
}

.share-option:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.share-option:first-child {
    border-radius: 8px 8px 0 0;
}

.share-option:hover {
    background: var(--bg-secondary);
}

.share-option i {
    width: 20px;
    text-align: center;
}

.share-option[data-share="facebook"]:hover i {
    color: #1877f2;
}

.share-option[data-share="twitter"]:hover i {
    color: #1da1f2;
}

.share-option[data-share="linkedin"]:hover i {
    color: #0077b5;
}

.share-option[data-share="email"]:hover i {
    color: #ea4335;
}

.share-option[data-share="copy"]:hover i {
    color: var(--accent);
}

/* Clear float for content below */
.share-container + section {
    clear: both;
}

@media (max-width: 768px) {
    .share-container {
        float: none;
        display: block;
        margin-bottom: 1rem;
    }
    
    .share-button {
        width: 100%;
        justify-content: center;
    }
    
    .share-dropdown {
        right: auto;
        left: 0;
        width: 100%;
    }
}


.video-embed{
  position: relative;
  &[open]{
    .video-summary{
      visibility: hidden;
    }
  }
  & > .video-summary{
    list-style: none;
  }
}

.video-summary{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  justify-content: center;
  align-items: center;
  place-items: center;
}

.video-playicon{
  grid-column: 2 / span 1;
  grid-row: 2 / span 1;
  height: clamp(4rem, 5vw, 8rem);
  width: clamp(4rem, 5vw, 8rem);
  z-index: 1;
  filter: drop-shadow(6px 6px 15px rgba(0, 0, 0, 1));
  fill: white;
}

.video-thumbnail{
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  aspect-ratio: 16 / 9;
}

.video-content{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  aspect-ratio: 16 / 9;
  & > iframe{
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 16 / 9;
  }
}

/* Hide element if the viewport width is 600px or less */
@media screen and (max-width: 1260px) {
  .noDisplayOnMobile {
    display: none;
  }
}
