/* nb Get fonts from   https://gwfh.mranftl.com/fonts/outfit?subsets=latin*/

/*fading between pages - unnecessary but fancy.  Get rid if it's slowing stuff down?*/
@view-transition {
  navigation: auto;
}
::view-transition-group(root) {
  animation-duration: 0.5s;
}

/* manrope-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/manrope-v20-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* manrope-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/manrope-v20-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


body {
	font-family: sans-serif;
	background: #222 ;
	color: #ccc ;
}

/*if there is no banner image, use a simple green header*/
header.no-banner {
	background: #59654c; 
	padding: 20px ;
	border-radius: 8px;
}

/*if there's a banner image make the image the background and make the text float over it*/
header.has-banner {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 2rem;
}

header.has-banner .banner {
    display: block;
    width: 100%;
    height: 380px;
    object-fit: cover;
}

header.has-banner .header-content {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    color: white;
    z-index: 1;
}

header.has-banner::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
      to top,
      rgba(0,0,0,.85), /*last number is the opacity at the bottom of the image as a percent*/
      rgba(0,0,0,0) 70%
    );

    pointer-events: none;
}

footer {
	padding: 50px ;
}

main {
	max-width: 95% ;
	margin: auto ;
}

h1, h2, h3, h4, h5, h6  {
	font-family: 'Manrope', sans-serif;
}

img {
	max-width: 100% ;
}

.breadcrumbs {
	text-align: center ;
	font-family: 'Manrope', sans-serif;
}

header h1 {
	text-align: center ;
	font-family: 'Manrope', sans-serif;
}

footer {
	text-align: center ;
}

/* URL Colours */
a {
  color: #ccc;
  text-decoration: none;
}
a:visited {
  color: #ccc; 
}
a:hover {
  color: #9CAF88; /*  highlight and underline on hover for feedback */
  /*text-decoration: underline;*/
}

/* For TAGLIST.HTML */
.taglist {
	text-align: center ;
	clear: both ;
}

/* For NEXTPREV.HTML */
#nextprev {
	/* The container for both the previous and next articles. */
}
#prevart {
	float: left ;
	text-align: left ;

}
#nextart {
	float: right ;
	text-align: right ;
}
#nextart,#prevart {
	max-width: 33% ;
	padding: 12px;
}

/*  Grid stuff for album pages */

.gallerygrid {
    display: grid;
	padding-top: 18px;
	padding-bottom: 18px;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.albumcover {
    display: block;
    text-decoration: none;
	background-color: #333;
  	transition: background-color 0.2s ease;
	padding: 12px;
	border-radius: 8px;
}
.albumcover img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
	border-radius: 6px;
}
.albumcover:hover {
	background-color: #444;
}


.launcher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.launcher-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background-color: #333;
  border-radius: 8px;
  text-decoration: none;
  color: #ccc;
  transition: background-color 0.2s ease;
}
.launcher-item:hover {
  background-color: #444;
  border: 1px solid var(--accent-sage);
}
.launcher-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.launcher-icon.fa-solid, .launcher-icon[class*="fa-"] {
  font-size: 28px;
  text-align: center;
}
.launcher-label {
  font-size: 1rem;
}

.intro-row {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
  padding-top:20px
}
.intro-row img {
  width: 200px;
  border-radius: 8px;
  flex-shrink: 0;
}
.intro-text {
  flex: 1;
}

/*for leaflet maps*/
.gallery-map {
    width: 90%;
    max-width: 1500px;
    height: 60vh;
    min-height: 300px;
    margin: 2rem auto;
}

/*for embedded videos*/

/*
.gallery-video {
    width: 90%;
    max-width: 1000px;
}

.gallery-video video {
    width: 30%;
    border-radius: 8px;
    display: block;
}
*/


/*try 2 */ 

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    margin: 0;
}

.gallery-video {
    margin:0;
    width: 90%
}

.video-grid video {
    max-width: 500px;
    width: 100%;
    display: block;
    margin: 0;
    justify-self: left;
}

/*try 3 */
/*
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.video-grid .gallery-video {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.video-grid video {
    width: 100%;
    display: block;
    border-radius: 8px;
}
    */