/* Removing this will fuck up your element sizing for the whole site DO NOT REMOVE IT */
* {
  box-sizing: border-box;
}

body,
html {
  margin: 0;
  padding: 0;
  font-family: "Nunito Sans", sans-serif;
  background-color: #805781;
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

/* General Styling */
#header {
  background-color: #411C42;
  font-family: "Skranji", system-ui;
  font-weight: 400;
  font-style: normal;
  color: #ECECEC;
  padding: 20px;
  margin: 0;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

#header h1 {
  font-family: "Skranji", system-ui;
  font-weight: 900;
  font-style: normal;
  text-align: center;
  font-size: 2.5rem;        /* adjust size to match your layout */
  letter-spacing: 0.02em;   /* same as Google Fonts preview */
  line-height: 1.2;  
  margin: 0;
}

#header h1 a {
  font-family: "Skranji", system-ui;
  font-weight: 900;
  font-style: normal;
  color: inherit;          
  text-decoration: none;   
}

h1, h2 {
  font-family: "Skranji", system-ui; 
}

h2 {
font-size: 30px;
margin: 1em 0;
}

h3, h4 {
  padding: 0;
  margin: 0;
  line-height: 1.3;
}

p {
font-size: 15px;
/*color: #333333;*/
line-height: 1.5;                 /* Space between lines */
margin: 1em 0;                    /* Space above and below paragraphs */
text-align: justify;
}

.role-text {
  font-family: "Nunito Sans", sans-serif;
  font-size: 13px;
}


/* Navigation links container */
#navLinks {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex-wrap: wrap;
  width: 100%;
}

/* Navigation links styling */
#navLinks a {
  color: #fff5c4;
  transition: all 0.2s ease-out;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
}

#navLinks a:hover {
  color: #BCE784;
  text-decoration: underline;
}

/* Dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

/* Dropdown menu*/
.dropdown-content {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  background-color: #6B366D;
  min-width: 160px;
  z-index: 1001;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  border-radius: 4px;
  margin-top: 5px;
  padding: 0.25rem 0;
  pointer-events: none;
  transition: opacity 0.3s ease 0.2s, visibility 0.3s ease 0.2s;
}

/* Show dropdown content when you hover over it */
.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

/* Dropdown button styling */
.dropbtn {
  background: none;
  border: none;
  color: #fff5c4;
  font: inherit;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  text-decoration: underline;
  transition: color 0.2s ease-out;
}

.dropbtn:hover,
.dropdown:hover .dropbtn {
  color: white;
  text-decoration: none;
  outline: none;
}

/* Dropdown links */
.dropdown-content a {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  color: #fff5c4;
  transition: background-color 0.2s ease-out;
}

.dropdown-content a:hover {
  background-color: #6B366D;
}

/* Main content styling */
.main {
  padding: 0 2em 1em 2em;
  margin: 0 auto;
  background-color: #805781;
}

.gallery {
  padding-top: 1em;
  columns: auto 3;
  text-align: center;
  column-gap: 1em;
  margin-top: 0; /* ensure no big space between the photo gallery and header*/
}

hr {
  margin: 2em 0;
}

#footer {
  background-color: #411C42;
  color: #e4edf2;
  text-align: center;
  padding: 15px;
  position: relative;
  z-index: 1000;
}

.social-icons a {
  color: rgb(228, 237, 242);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.1);
}

.social-icons a .icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  display: block;
}

.social-svg {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

#footer p {
  color: #7b3e7d;
  font-size: 0.9em;
  text-align: center;
}

/* Page specific */
.textPage {
  color: #e4edf2;
  max-width: 800px;
  margin: 0 auto;
}

.gallery img {
  border: 1px solid #411C42;
  width: 100%;
  cursor: pointer;
  border-radius: 4px;
  transition: box-shadow 0.3s ease;
}

.gallery img:hover {
  box-shadow: 0 0 10px 2px #8AB857;
}

/* Responsive columns */
@media only screen and (max-width: 800px) {
  .gallery {
    columns: auto 2;
  }
}

@media only screen and (max-width: 500px) {
  .gallery {
    columns: auto 1;
  }
}

figure {
  display: inline-block;
  margin: 0 0 15px 0;
}

.spotlightImage {
  display: block;
  margin: 0 auto;
}

/* ---------------------------------
   Lightbox Slideshow Styles
---------------------------------- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(37, 17, 38,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
  padding: 1em;
  box-sizing: border-box;
  user-select: none;
}

/* This makes sure the image fits nicely inside viewport */
.lightbox img {
  max-width: 90vw;    /* max 90% of viewport width */
  max-height: 80vh;   /* max 80% of viewport height */
  object-fit: contain;
  margin-bottom: 0.5em;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

/* Caption below image */
.lightbox-caption {
  color: #eee;
  font-size: 1.1em;
  max-width: 80%;
  text-align: center;
  margin-bottom: 1em;
  font-style: italic;
  user-select: none;
}

/* Close button */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  user-select: none;
  z-index: 10001;
}

/* Arrows */
.lightbox-arrow {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  color: white;
  padding: 10px;
  user-select: none;
  z-index: 10001;
}

.left-arrow {
  left: 20px;
}

.right-arrow {
  right: 20px;
}

.lightbox-arrow:hover {
  color: #ccc;
}

/* This is to help format YT Videos */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
