*{    
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body{
  background-color: black;
  color: white;
  font-size: 23px;
  font-weight: 400;
}

@font-face {
  font-family: 'FontOne';
  src: url(/static/PlayfairDisplay-ExtraBold.baaa55df45.woff2) format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FontTwo';
  src: url('/fonts/SourceSans3-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.header-container{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 10vw;
}

.links-container{
  display: flex;
  align-items: center;
  gap: 1em;
}

#sidebar-active,
.open-sidebar-button, .close-sidebar-button{
  display: none;
}

svg{
  fill: white;
}

a{
  text-decoration: none;
  color: white;
  font-family: "FontTwo", sans-serif;
}

a:hover{
  color: rgb(98, 98, 98);
}

.background{
  background-image: url(home.4e712eec75.webp);
  background-size: cover;
  background-position: center;
  height: 100vh;
  width: auto;
}

.home-page{
  position: relative;
  text-align: center;
}

.hero-text{
  display: flex;
  gap: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5em;
}

.hero-title{
  font-family: "FontOne", serif;
}

.sports-container{
  display: flex;
  justify-content: center;
  padding: 10vw;
  gap: 5vw;
}

.content{
  display:flex;
  padding: 5vw 10vh;
  justify-content: center;
}

.container {
  position: relative;
}

.image {
  display: block;
  width: 30vw;
  height: auto;
  border-radius: 10px;
}

.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: .5s ease;
  background-color: rgba(0, 0, 0, 0.6);
}

.container:hover .overlay {
  opacity: 1;
}

.football-text {
  color: white;
  font-size: 50px;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: center;
}

/* Wrapper centers the gallery and gives padding */
.gallery-wrapper {
  max-width: 1200px; /* limits the gallery width */
  margin: 0 auto;    /* centers horizontally */
  padding: 20px;   /* space left/right */
  box-sizing: border-box;
}

/* Grid: 2 images per row */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns */
  gap: 20px; /* space between images */
}

/* Optional: adjust for smaller screens */
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: 1fr; /* 1 column on mobile */
  }
}

/* Make images fill their grid cell nicely */
.gallery img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px; /* optional rounded corners */
}

.leagues{
  display:flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3vw;
  margin-inline: 8vw;
  margin-block: 3vw;
}

.leagues-content{
  padding: 0px;
}

.football-league-text{
  font-size: 40px;
}

/* Lightbox overlay */
.lightbox {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox.hidden {
  display: none;
}

/* Lightbox image */
.lightbox img {
  max-width: 70vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  transition: opacity 0.4s ease, filter 0.4s ease;
  touch-action: pan-y; /* allow vertical scroll but capture horizontal swipe */
  user-select: none;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-arrows {
  margin-top: 12px; /* space between image and arrows */
  display: flex;
  justify-content: space-between;
  width: 30%; /* adjust width as needed */
}

.lightbox-nav {
  font-size: 36px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px 16px;
}

.lightbox-nav:hover {
  opacity: 0.7;
}

/* Mobile lightbox sizing */
@media (max-width: 768px) {
  .lightbox img {
    max-width: 95vw;
    max-height: 90vh;
  }
}

/* Loading state for progressive image swap */
.lightbox img.loading {
  opacity: 0.5;
  filter: blur(6px);
}

/* Close button */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 36px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  line-height: 1;
}

.lightbox-close:hover {
  opacity: 0.8;
}

@media screen and (max-width: 900px){

  .header-container{
    padding: 0 0 0 20px;
  }

  .hero-text{
    align-items: center;
    padding-top: 20vw;
    font-size: 8vw;
    gap: 2vw;
  }

  .header-container{
    justify-content: flex-end;
  }

  .links-container{
    flex-direction: column;
    align-items: center;
    position: fixed;
    top: 0;
    right: -100%;
    z-index: 10;
    width: 100%;
    height: 100%;
    background-color: black;
    box-shadow: -5px 0 5px rgba(0, 0, 0, 0.25);
    transition: 0.40s ease-out;
    gap: 5px;
    padding: 0 0 0 20px;
  }

  a.nav-link{
    height: auto;
    margin-block: 0.7em;
    text-align: center;
    font-size: 1.4em;
  }

  .open-sidebar-button, .close-sidebar-button{
    padding: 20px;
    display: block;
  }

  .close-sidebar-button{
    margin-left:auto;
  }

  #sidebar-active:checked ~ .links-container{
    right: 0;
  }

  #sidebar-active:checked ~ #overlay{
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9;
  }

  .content{
    padding: 10vh;
  }
  .image {
    width: 70vw;
  }

  .background{
  background-image: url(home-mobile.15aebcd6fb.webp);
  }

  .overlay{
    display: none;
  }

  .container{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7vw;
  }

  .gallery{
    gap: 5vw;
    margin-top: 8vw;
  }
  .gallery-image{
    width: 90%;
  }

  .leagues-content{
    padding: 0;
    margin-top: 13vw;
  }

  .leagues{
    margin-bottom: 13vw;
  }

}
