/*
Theme Name: Norman Mine
Author: Ash
Description: Base styles for static HTML build (front-page/page/single/archive) ahead of WP conversion.
*/

/* ---------- Tokens ---------- */

/* google font import */
/* Cormorant Garamond headling */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&display=swap');


/* body font mulish */
@import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,200..1000;1,200..1000&display=swap');


:root {

    /* debugs */

    --debug-border-width: 1px;

    /* --debug-border-blue: var(--debug-border-width) solid blue;
    --debug-border-red: var(--debug-border-width) solid red;
    --debug-border-green: var(--debug-border-width) solid green;
    --debug-border-yellow: var(--debug-border-width) solid yellow; */
/* 
    --debug-bg-colour: grey; */


    

	/* Colour — placeholders, will evolve */
	--color-bg-dark:#05253b;
	--color-bg-darker: #000000;
	--color-bg-light: #F7F8F9;
	--color-text-dark: #111418;
	--color-text-light: #EAECEF;
	--color-primary: #557891;
	--color-secondary: #A6724B;

	/* Default surface (light gallery panel by default) */
	--color-bg: var(--color-bg-light);
	--color-text: var(--color-text-dark);
	--color-muted: #666666;

	/* Type */
	--font-body: Mulish;
	--font-heading: Cormorant;
	--fw-regular: 400;
	--fw-bold: 200;
	--line-height-heading: 1.15;
	--line-height-body: 1.6;

	/* Layout */
	
--container-width: 1440px;
--gutter: 2.5rem;


/* style */

--global-small-border-radius:4px;
--glbal-thin-border: 1px solid color-mix(in srgb, var(--color-bg-light) 40%, transparent);
--global-padding: 2rem


}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

* {
	margin: 0;
}

html {
	-webkit-text-size-adjust: 100%;
	color-scheme: light;
}

body {
	min-height: 100vh;
	line-height: var(--line-height-body);
	-webkit-font-smoothing: antialiased;
}

img,
picture,
svg,
video {
	max-width: 100%;
	display: block;
    min-width: 100%;
	border-radius: var(--global-small-border-radius);
}

input,
button,
textarea,
select {
	font: inherit;
	color: inherit;
}

ul,
ol {
	padding: 0;
	list-style: none;
}

a {
	text-decoration: none;
	color: inherit;
}

table {
	border-collapse: collapse;
}

/* Respect motion preferences */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---------- Base ---------- */
body {
	font-family: var(--font-body);
	color: var(--color-text);
	background: var(--color-bg);
    min-width: 320px;
}

.container {
	max-width: var(--container-width);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* Visible focus state for keyboard users */
:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

/* Selection colour tied to accent */
::selection {
	background: var(--color-primary);
	color: var(--color-text-light);
}

/* ---------- Accessibility ---------- */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link.screen-reader-text:focus {
	position: fixed;
	top: 0;
	left: 0;
	width: auto;
	height: auto;
	clip: auto;
	padding: 1rem;
	background: var(--color-bg);
	z-index: 100;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-heading);
	font-weight: var(--fw-regular);
	line-height: var(--line-height-heading);
	letter-spacing: -0.01em;
}

p{}

h1, .h1 {
	font-size: 2.75rem; /* 44px */
}

h2, .h2 {
	font-size: 2.25rem; /* 36px */
}

h3, .h3 {
	font-size: 1.75rem; /* 28px */
}

h4, .h4 {
	font-size: 1.375rem; /* 22px */
}

h5, .h5 {
	font-size: 1.125rem; /* 18px */
}

h6, .h6 {
	font-size: 1rem; /* 16px */
	letter-spacing: 0;
	text-transform: uppercase;
}

/* Bold variant of each heading — apply as a modifier class,
   e.g. <h2 class="h2 h2--bold"> or reuse on a non-heading element */
.h1--bold,
.h2--bold,
.h3--bold,
.h4--bold,
.h5--bold,
.h6--bold {
	font-weight: var(--fw-bold);
}

p {
	font-size: 1rem; /* 16px */
	max-width: 65ch; /* keeps line length readable */
    font-family: Mulish;
}

p.p--bold,
.p--bold {
	font-weight: var(--fw-bold);
}

/* Smaller paragraph variant — captions, meta, credits */
p.p--small,
.p--small {
	font-size: 0.875rem; /* 14px */
}

@media (min-width: 48em) {
	h1, .h1 {
		font-size: 3.5rem; /* 56px */
	}

	h2, .h2 {
		font-size: 2.75rem; /* 44px */
	}

	h3, .h3 {
		font-size: 2rem; /* 32px */
	}

	h4, .h4 {
		font-size: 1.5rem; /* 24px */
	}
}

/* ---------- Colour utilities ---------- */
.bg-dark {
	background-color: var(--color-bg-dark);
	color: var(--color-text-light);
}

.bg-light {
	background-color: var(--color-bg-light);
	color: var(--color-text-dark);
}

.text-primary {
	color: var(--color-primary);
}

.text-secondary {
	color: var(--color-secondary);
}

/* ---------- Layout ---------- */

/* this is user through out as an inner container */
.container {
	width: min(100% - 5rem, var(--container-width));
	margin-inline: auto;
         

}
/* ---------- Header ---------- */


.site-footer,
.site-header {
	padding: var(--gutter);
     color: var(--color-text-dark);
     border-bottom: var(--glbal-thin-border);

	    background: var(--color-bg-light);
/*background: linear-gradient(180deg, var(--color-bg-dark) 0%, var(--color-bg-darker) 100%);*/
}
	 

/*.site-footer{*/
/*	margin-top: 2rem;*/
	
/*}*/

    
/* -----------------------------------------
   Hero — homepage, fills viewport under header
----------------------------------------- */
.hero--home {
	min-height: 100svh;
	min-height: 100vh; /* fallback for browsers without svh support */
}

/* -----------------------------------------
   Header — homepage variant (transparent dark overlay, floats above hero)
----------------------------------------- */
.site-header--home {
	position: absolute;
	inset-inline: 0;
	top: 0;
	z-index: 20;
	background: rgba(0, 0, 0, 0.35);
	border-bottom: none;
}

#masthead.site-header--home .site-title {
	color: var(--color-text-light);
}

.site-header--home .main-navigation .primary-menu .menu-item a {
	color: var(--color-text-light);
}

.site-header--home .menu-toggle__icon,
.site-header--home .menu-toggle__icon::before,
.site-header--home .menu-toggle__icon::after {
	background: var(--color-text-light);
}






.site-header__inner{

	display: flex;
	align-items: center;
	justify-content: space-between;
}
    



.site-title {
	font-size: 2rem;
	font-weight:1;
	font-family: var(--font-heading);
}

.main-navigation .primary-menu {
	display: flex;
	gap: 2rem;

}


.main-navigation .primary-menu .menu-item a{
    color: var(--color-text-dark);
    
    
}

.menu-toggle {
	display: none;
}

/* ---------- Main / sections ---------- */
.site-main {
	display: block;


}

.site-header,
.site-footer,
.section {
	padding-block: 4rem;
       
        width:100%
}


section.hero {
	width: 100%;
	min-height: 80vh;
	display: grid;
	align-items: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center 40%;
    color: var(--color-text-light)
   
}

.hero_container {
	display: flex;
	align-items: flex-end;
	height: 100%; /* or min-height: 80vh directly */
    padding-bottom: 2rem;
}


.hero__content {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 2rem;
    align-items:center;
    padding-top: var(--global-padding);
    padding-bottom: var(--global-padding);
    padding-left:var(--global-padding) ;
    padding-right:var(--global-padding) ;

    border: var(--glbal-thin-border);
    border-radius: var(--global-small-border-radius);
  
}

    .border_left_right{
        
        border-left: var(--glbal-thin-border);
         border-right: var(--glbal-thin-border);
         text-align: center;

    }


/* container with the learn more link */
.hero_learn_more{
    padding-top: 2.5rem;

    display: flex;
    flex-direction: column;
    gap: 1rem
}

.learn_more{
    float: right;
}


/* hero content for smaller screens break */
@media (max-width: 860px){


/* changes to 1 1fer */
    .hero__content {
            grid-template-columns: 1fr;
            gap: .5rem;
        }

        .border_left_right{
        
        border: none;
        text-align: left;

    }

    /* moves the backgroud image to the center */
    section.hero {
        width: 100%;
        min-height: 70vh;
        display: grid;
        align-items: center;
        background-repeat: no-repeat;
        background-size: cover;
        background-position:40% center;
    
    }

    /* learn more fix for small screen */
    .hero_learn_more{
    padding-top: 0px;

    display: flex;
    flex-direction: column;
    gap: 1rem
    }

    .learn_more{
        align-self: flex-end;
    }


}




/* Front Page Category thumbs */
.category-index {
	padding-block: 4rem;
}

.category-index__item {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	padding-block: 3rem;
	border-bottom: 1px solid var(--color-muted);
}

.category-index__item:first-child {
	border-top: 1px solid var(--color-muted);
}

.category-index__header {
	display: flex;
	align-items: baseline;
	gap: 1.5rem;
	

}

.category-index__number {
	font-size:1rem;
	color: var(--color-muted);
	font-weight: 100;
}

.category-index__title {
	margin-right: auto; /* pushes the link to the far right */
}

.category-index__link {
	font-size: 0.875rem;
	white-space: nowrap;
}

.category-index__body {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2.5rem;
	align-items: center;
}

.category-index__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	aspect-ratio: 4 / 3;
}

.category-index__excerpt {
	max-width: 40ch;
}


.category-index__text {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.category-index__headline {
	margin: 0;
}
.category-index__excerpt {
	max-width: 40ch;
}




/* ---------- category thumbs Small screens ---------- */
@media (max-width: 640px) {

	.category-index__body {
		grid-template-columns: 1fr;
	}

	.category-index__header {
		flex-wrap: wrap;
	}

	.category-index__title {
		width: 100%; /* forces link onto its own line under the title */
		margin-right: 0;
	}
}


/* category archive start with page header */
/* ---------- Page banner ---------- */
.decipline-page-banner {
padding-top: var(--global-padding);
padding-bottom: var(--global-padding);

  border-bottom: 2px solid var(--color-muted);


}

.decipline-page-banner__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2.5rem;
	align-items: center;
}

.decipline-page-banner__title {
	font-size: 5rem;
	line-height: 1;
}

.decipline-page-banner__intro p {
	max-width: 45ch;
}

.decipline-page-banner__intro p + p {
	margin-top: 1rem;
}



/* ---------- decipline Responsive ---------- */
@media (max-width: 860px) {

	.decipline-page-banner__inner {
		grid-template-columns: 1fr;
		gap:1rem
	}

	.decipline-page-banner__title {
		font-size: 3.5rem;
	}

	

}



/* ---------- Archive list ---------- */
.archive-list {
}

.archive-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "media   content"
    "thumbs  thumbs";
  gap: 2.5rem;
  align-items: center;
  padding-top:4rem;

  border-bottom: 1px solid var(--color-muted);
}


@media (max-width: 860px) {

	.archive-item {
		grid-template-columns: 1fr;
		grid-template-areas:
			"media"
			"thumbs"
			"content";
		gap:0;
		padding-bottom: 1rem;
	}

}

.archive-item__media {
  grid-area: media;
}

.archive-item__content {
  grid-area: content;
  align-self: center; /* keeps content vertically centered against the taller media+thumbs column */
}




.archive-item__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	aspect-ratio: 4 / 3;
}

.archive-item__number {
	display: block;
	font-size: 0.875rem;
	color: var(--color-muted);
	margin-bottom: 0.5rem;
}

.archive-item__title {
	margin-bottom: 0.75rem;
	margin-top: 1rem;
}

.archive-item__subHeadline{

}

.archive-item__meta {
	font-size: 0.875rem;
	color: var(--color-muted);
	display: flex;
	gap: .5rem;
	
}

.archive-item__meta .archive-item__type {
	display: block;
}

.archive-item__excerpt {
	max-width: 40ch;
	margin-bottom: 1rem;
	margin-top: 1rem;
	white-space: pre-wrap;
	
}

.archive-item__link {
	font-size: 0.875rem;
	text-decoration: underline;
}





/* ---------- Single: Hero ---------- */
.single-hero {
	position: relative;
	width: 100%;
	min-height: 45vh;
	display: grid;
	align-items: center;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
	color: var(--color-text-light);
	margin-bottom: 2rem;
}

.single-hero__overlay {
	position: absolute;
		inset: 0;
	background: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.4) 40%,
    rgba(0, 0, 0, 0.6) 70%,
    rgba(0, 0, 0, 0.8) 100%
);

}

.single-hero__container {
	position: relative;
	z-index: 1;
	padding-block: 3rem;
}

.single-hero__content {
	max-width: 60ch;
}

.single-hero__eyebrow {
	display: block;
	font-size: 0.875rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	margin-bottom: 1rem;
	opacity: 0.85;
}

.single-hero__title {
	margin-bottom: 0.75rem;
}

.single-hero__subtitle {
	font-family: var(--font-body);
	font-weight: var(--fw-regular);
	font-size: 1.125rem;
	line-height: var(--line-height-body);
	margin-bottom: 1rem;
	opacity: 0.9;
}

.single-hero__intro {
	font-size: 1rem;
	opacity: 0.85;
}

@media (max-width: 640px) {
	.single-hero {
		min-height: 55vh;
		align-items: end;
	}

	.single-hero__container {
		padding-block: 2rem;
	}
}


/* ---------- Single: Content (headline/sub/paragraph + figure) ---------- */
.single-content {

		padding-bottom: var(--global-padding);


}

.single-content__inner {

	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap:2rem;
}

.single-content__intro {
	width: min(100%, 50vw);
	min-width: 20rem; /* keeps it readable on smaller desktop widths before the vw value gets too narrow */
}

.single-content__headline {
	margin-bottom: 0.5rem;
}

.single-content__subheadline {
	font-family: var(--font-heading);
	font-weight: var(--fw-regular);
	font-size: 2rem;
	color: var(--color-muted);
	margin-bottom: 1rem;
}

.single-content__intro p {
	margin-inline: auto;
}

.single-content__figure {
	width: 100%;
	max-width: 900px;
}

.single-content__figure img {
	width: 100%;
}

.single-content__figure figcaption {
	margin-top: 0.75rem;
	font-size: 0.875rem;
	color: var(--color-muted);
	text-align: center;
}

.single-content__figure .archive-gallery img {
	width: 100%;
}

@media (max-width: 860px) {
	.single-content__intro {
		width: 100%;
		min-width: 0;
	}

	.single-content__figure figcaption {
	margin-top:0rem;

}
}


/* ---------- Single: WYSIWYG body ---------- */
.single-body {
}

.single-body__credits{
    margin-top: 1rem;
    font-style: italic;
}

.single-body__inner {
	max-width: 65ch;
	margin-inline: auto;
}

.entry-content > * + * {
	margin-top: 1.5rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: 2.5rem;
	margin-bottom: 0.5rem;
}

.entry-content blockquote {
	border-left: var(--glbal-thin-border);
	padding-left: 1.5rem;
	font-style: italic;
	color: var(--color-muted);
}

.entry-content a {
	text-decoration: underline;
}







/* footer  */

/* ---------- Footer ---------- */
.site-footer {
	padding-block: var(--gutter);
	border-top: 1px solid #eee;
}

.site-footer__inner {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 2.5rem;
}

.footer-col__title {
	font-family: var(--font-body);
	font-weight: var(--fw-bold);
	font-size: 0.875rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	margin-bottom: 1rem;
	color: var(--color-text-light);
}

.footer-col--about .site-title {
	margin-bottom: 0.75rem;
	color: var(--color-text-dark);
}

.footer-col__desc {
	font-size: 0.875rem;
	max-width: 32ch;
	margin-bottom: 1rem;
	opacity: 0.85;
}

.footer-col__contact a {
	font-size: 0.875rem;
	text-decoration: underline;
}

.footer-menu li + li {
	margin-top: 0.6rem;
}

.footer-menu a {
	font-size: 0.875rem;
	opacity: 0.85;
}

.footer-menu a:hover {
	opacity: 1;
	text-decoration: underline;
}

.footer-social {
	display: flex;
	gap: 1rem;
}

.footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border: var(--glbal-thin-border);
	border-radius: 50%;
	font-size: 1.1rem;
}

.footer-social a:hover {
	background: var(--color-text-light);
	color: var(--color-bg-dark);
}

.site-footer__bottom {
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: var(--glbal-thin-border);
}

.site-footer__bottom .site-info {
	font-size: 0.85rem;
	color: var(--color-text-light);
	opacity: 0.7;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {

	.site-footer__inner {
		grid-template-columns: 1fr 1fr;
		row-gap: 2.5rem;
	}

	.footer-col--about {
		grid-column: 1 / -1;
	}

}

@media (max-width: 640px) {

	.site-footer__inner {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

}

/* footer end */



/* ---------- Footer ---------- */
.site-footer {
	padding: var(--gutter);
	border-top: 1px solid #eee;

}

.site-info {
	font-size: 0.85rem;
	color: var(--color-muted);
}

/* ---------- Small screens ---------- */
@media (max-width: 640px) {

	.container {
		width: min(100% - 2.5rem, var(--container-width));
	}

	.site-header__inner {
		flex-wrap: wrap;
	}

	.menu-toggle {
		display: block;
	}

	.main-navigation .primary-menu {
		flex-direction: column;
		gap: 1rem;
	}

}




/* hamberger */
@media (max-width: 640px) {

	.container {
		width: min(100% - 2.5rem, var(--container-width));
	}

	.site-header__inner {
		flex-wrap: wrap;
		position: relative;
	}

	/* Hamburger button */
	.menu-toggle {
		display: block;
		position: relative;
		z-index: 101;
		background: none;
		border: none;
		width: 2rem;
		height: 2rem;
		cursor: pointer;
	}

	.menu-toggle__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(1px, 1px, 1px, 1px);
		white-space: nowrap;
	}

	/* Hamburger icon, built from one span + before/after pseudo-elements */
	.menu-toggle__icon,
	.menu-toggle__icon::before,
	.menu-toggle__icon::after {
		display: block;
		position: absolute;
		left: 0.25rem;
		width: 1.5rem;
		height: 2px;
		background: var(--color-text-dark);
		transition: transform 0.25s ease, opacity 0.25s ease;
	}

	.menu-toggle__icon {
		top: 50%;
		transform: translateY(-50%);
	}

	.menu-toggle__icon::before {
		content: "";
		top: -8px;
	}

	.menu-toggle__icon::after {
		content: "";
		top: 8px;
	}

	/* Animate to an X when open */
	.menu-toggle[aria-expanded="true"] .menu-toggle__icon {
		background: transparent;
	}

	.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before {
		top: 0;
		transform: rotate(45deg);
	}

	.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after {
		top: 0;
		transform: rotate(-45deg);
	}

	/* Overlay menu */
	.main-navigation .primary-menu {
		position: fixed;
		inset: 0;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: 2rem;
		background: linear-gradient(180deg, var(--color-bg-dark) 0%, var(--color-bg-darker) 100%);
		color: var(--color-text-light);
		font-size: 1.5rem;

		opacity: 0;
		visibility: hidden;
		transform: translateY(-1rem);
		transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;

		z-index: 100;
	}

	.main-navigation .primary-menu.is-open {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
		background: var(--color-bg-light);
	}

	/* Prevent background scroll when menu is open */
	body.menu-open {
		overflow: hidden;
	}
}




/* new FSGallery START not use yet*/
section.imageGallery{


       margin-top: var(--global-margin);
	   text-align: center;
   
}


#gallery-heading{
	height: 100%;
padding-bottom: var(--global-padding);
padding-top: var(--global-padding);

}



.fsGalleryContainer{

    display: grid;

      width: 100%;
      grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
      position: relative;
       margin-top: var(--global-margin);
       margin-bottom: var(--global-margin) ;

}




@media (max-width: 860px) {

	.fsGalleryContainer{

    display: grid;

      width: 100%;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      position: relative;
       margin-top: var(--global-margin);
       margin-bottom: var(--global-margin) ;

}

}


.galleryThumb {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}

/* Dark overlay */
.galleryThumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.3s ease;
  pointer-events: none;
}

/* Brighten on hover */
.galleryThumb:hover::after {
  background: rgba(0, 0, 0, 0.05);
}

.galleryThumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

/* fs gallery css end */








/* swiper */

.archive-item__media {
  min-width: 0; /* stops the grid item from expanding past its track */
}


.archive-gallery {
  width: 100%;
  aspect-ratio: 16/ 9; /* matches your old 700x400 ratio — swap to 4/3 to match the slide images */

  margin-bottom: 1rem;
}

/* image inside the slider */
.archive-gallery .swiper-wrapper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.archive-gallery__figure{
margin-top: 1rem;


}
.archive-gallery__caption{
	text-align: center;
	font-size: .8rem;
	
}


.swiper-thumbs .swiper-slide {

  cursor: pointer;
}


.swiper-thumbs {
  width: 100%;
  height: 90px;
  margin-bottom: 1rem;
}

@media (max-width: 860px) {


  .swiper-thumbs {
    height: 110px; 
  }
}

.swiper-thumbs .swiper-slide {
  height: 90px;         

  cursor: pointer;
  border-radius: var(--global-small-border-radius);
  overflow: hidden;
  flex-shrink: 0;
}

.swiper-thumbs .swiper-slide img {
  width: 100%;
  height: 100%;
  min-width: 0;      /* still need this to override your global img min-width: 100% rule */
  max-width: none;
  object-fit: cover;
  display: block;
}


.swiper-button-next, .swiper-button-prev{
	color:var(--color-text-light);
	scale:.8;

}



/*Gallery Thumbs Toggle*/
.archive-item .swiper-thumbs {
  grid-area: thumbs;
  display: none;
  opacity: 0;
}

.archive-item .toggleThumbsClass {
  display: block;
  opacity: 1;
}


.thumbsToggle{

	width: 100%;
	border: none;
	cursor: pointer ;
	transition: .3s;
}
.thumbsToggle:hover{
	background-color: var(--color-muted);
	color: var(--color-bg-light);
}


.thumbs-collapse {
  grid-area: thumbs;
  overflow: hidden;
}






/*Video CSS additin for Swipper gallery repeater*/

/*/////////////////////////////*/
/* Video CSS addition for Swiper gallery repeater */
.swiper-slide--video {
	position: relative;
}
.archive-video-wrap {
	position: relative;
	width: 100%;
	height: 100%;
	cursor: pointer;
}
.archive-item__video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Overlay UI — signals "this is a video" until played */
.archive-item__video-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	background: rgba(0, 0, 0, 0.25);
	transition: background 0.2s ease, opacity 0.2s ease;
	pointer-events: none; /* click is handled by .archive-video-wrap, not this layer */
}
.archive-video-wrap:hover .archive-item__video-overlay {
	background: rgba(0, 0, 0, 0.35);
}
.archive-item__video-overlay.is-hidden {
	opacity: 0;
	visibility: hidden;
}

.archive-item__play-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease, background 0.2s ease;
}
.archive-video-wrap:hover .archive-item__play-icon {
	transform: scale(1.08);
	background: #fff;
}
/* Play triangle, drawn with CSS borders */
.archive-item__play-icon::before {
	content: "";
	width: 0;
	height: 0;
	margin-left: 4px; /* optically center the triangle */
	border-style: solid;
	border-width: 10px 0 10px 16px;
	border-color: transparent transparent transparent #111;
}

.archive-item__video-label {
	color: #fff;
	font-size: 0.75rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Thumbnail strip — video icon badge over each poster thumb */
.swiper-thumbs .swiper-slide {
	position: relative;
}
.thumb-video-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.85);
	display: flex;
	align-items: center;
	justify-content: center;
}
.thumb-video-icon::before {
	content: "";
	width: 0;
	height: 0;
	margin-left: 2px;
	border-style: solid;
	border-width: 5px 0 5px 8px;
	border-color: transparent transparent transparent #111;
}












/* ---------- Main Menu ---------- */

.primary-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu li {
    position: relative;
}

.primary-menu a {
    display: block;
    text-decoration: none;
    color: var(--color-text-light);
}


/* ---------- Submenu ---------- */

.primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;

    min-width: 200px;

    margin: 0;
    padding: 0.75rem 0;

    list-style: none;

    /* Same dark colour as header */
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);

    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(10px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;

    /* Keeps submenu above page content */
    z-index: 1000;
}


/* Show submenu on hover/focus */
.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}


/* Submenu items */
.primary-menu .sub-menu li {
    width: 100%;
}


/* Submenu links */
.primary-menu .sub-menu a {
    display: block;
    padding: 0.6rem 1rem;
    white-space: nowrap;

    color: var(--color-text-light);
}


/* Submenu hover */
.primary-menu .sub-menu a:hover {
    background-color: var(--color-bg-darker);
    color: var(--color-text-light);
}





/* LightMond Css */

  .lightModeHeaderAndFooter{

		background: linear-gradient(180deg, var(--color-bg-light) 0%, var(--color-text-light) 100%);
		 color: var(--color-text-dark);

	}


#theme-toggle{

	color: var(--color-muted);
	font-size: 1.5rem;
	position: absolute;
	border: none;

	    background: transparent;
		 cursor: pointer;
		 right:0

	
}


.primary-menu a.colorToggle {
    color: var(--color-text-dark)
}


.BGColorToggle {
    background-color: var(--color-text-dark)
}

/* Add higher specificity for the light mode background */
.main-navigation .primary-menu.BGColorToggleLight {
	background: var(--color-bg-light);
}



/* Light mode hamburger */
.menu-toggle__icon.BGColorToggle,
.menu-toggle__icon.BGColorToggle::before,
.menu-toggle__icon.BGColorToggle::after {
    background: var(--color-text-dark);
}