@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

/* Base Styles */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: #fafafa;
  color: #333;
  line-height: 1.6;
}

/* Header */
header {
  background: #222;
  color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.top-banner {
  background: #333 url('../assets/images/banner.jpg') no-repeat center center;
  background-size: cover;
  color: #fff;
  text-align: center;
  padding: 0.5em 0;
  font-size: 2em;
  letter-spacing: 1px;
  font-weight: 700;
}

/* Use Gill Sans MT for the logo */
.top-banner h2 {
  font-family: 'Gill Sans MT', sans-serif;
}

nav {
  background: #444;
}
nav ul {
  display: flex;
  list-style: none;
  justify-content: center;
  margin: 0;
  padding: 0;
}
nav ul li {
  margin: 0 0.5em;
}
nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 0.75em 1em;
  text-transform: uppercase;
  font-weight: 700;
  position: relative;
  display: inline-block;
}
nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
nav ul li a:hover::after,
nav ul li a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Hero Section */
.hero {
  position: relative;
  text-align: center;
  padding: 2em 1em;
  background: url('../assets/img/hero.jpg') no-repeat center center/cover;
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: -1;
}
.hero h1 {
  margin-top: 0.5em;
  font-size: 3em;
  margin-bottom: 0.5em;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}
.hero p {
  font-size: 1.25em;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

/* Main Content */
main {
  padding: 1.5em;
}

/* Text Content Container for margins */
.text-content {
  margin: 0 auto;
  width: 90%;
  max-width: 1200px;
  padding: 0 1em;
}

/* Gallery */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: center;
  margin-top: 1em;
}
.gallery img {
  width: 100%;
  max-width: 400px;
  border-radius: 4px;
  transition: transform 0.3s ease;
}
.gallery video {
  width: 100%;
  max-width: 700px;
  border-radius: 4px;
  transition: transform 0.3s ease;
}
.gallery img:hover {
  transform: scale(1.05);
}
.gallery video:hover {
  transform: scale(1.05);
}

/* Buttons */
.buttons {
  margin: 1em 0;
}
.btn {
  display: inline-block;
  padding: 0.75em 1.5em;
  margin-right: 1em;
  background: linear-gradient(to bottom, #444, #333);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s ease;
}
.btn:hover {
  background: linear-gradient(to bottom, #555, #444);
}

/* Footer */
footer {
  background: #222;
  color: #bbb;
  text-align: center;
  padding: 1em;
}

/* Modal/lightbox styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  display: block;
  border-radius: 4px;
}

/* Gallery Header Centering */
.gallery-header {
  text-align: center;
}

/* Scrolling Gallery Styles */
.scrolling-gallery {
  width: 100%;
  overflow: hidden;
  padding: 0em 0;
  background: #f5f5f5;
  margin-top: 2em;
}

.scrolling-wrapper {
  display: flex;
  width: max-content;
  animation: scroll-left 60s linear infinite;
}

.gallery-items {
  display: flex;
}

.gallery-item {
  flex: 0 0 auto;
  margin-right: 1em;
}

/* Adjust images and videos inside scrolling gallery */
.scrolling-gallery img,
.scrolling-gallery video {
  height: 300px;
  width: auto;
  object-fit: cover; /* Maintain aspect ratio */
  border-radius: 0px;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}