/* Body & Base Typography */
body {
  margin: 0;
  padding: 0;
  font-family: Montserrat, Verdana, Geneva, Tahoma, sans-serif;
}

/* Outer Container (1005px Width) */
#tswcontainer {
  width: 1005px;
  margin: 0 auto;
}

.banner-img {
  width: 1005px;
  height: 318px;
  display: block;
}

/* Top & Footer Navigation Bar */
.topnav {
  position: relative;
  overflow: hidden;
  background-color: #a71e03;
}

.topnav a {
  float: left;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 12px;
}

.topnav a:hover {
  background-color: #ddd;
  color: black;
}

.topnav a.active {
  background-color: #a71e03;
  color: white;
}

.topnav-centered a {
  float: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.topnav-right {
  float: right;
}

/* Main Layout Grid (Replaces Floats to fix Side Nav Sticky behavior naturally) */
.main-layout {
  display: flex;
  align-items: flex-start;
  margin-top: 10px;
}

/* Side Column Container (190px Width) */
#tswsidecol {
  width: 190px;
  flex-shrink: 0;
  position: sticky;
  top: 20px;
}

/* Side Navigation Base Setup (Original Condensed Styling Retained) */
.sidenav {
  width: 190px;
  background-color: #a71e03;
  overflow-x: hidden;
  padding-top: 20px;
  border-radius: 4px;
}

.sidenav a {
  padding: 6px 8px 6px 16px;
  text-decoration: none;
  font-size: 10px;
  color: white;
  display: block;
}

.sidenav a:hover {
  color: #f1f1f1;
}

/* Main Content Column (795px Width) */
#tswcontent {
  width: 795px;
  margin-left: 20px;
}

.auto-style2 {
  text-align: justify;
  font-family: Montserrat, Verdana, Geneva, Tahoma, sans-serif;
}

.text-center {
  text-align: center;
}

/* Image Gallery Layout */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 100%;
  margin: 20px auto;
}

.gallery img {
  width: calc((100% - 32px) / 3);
  height: 250px;
  object-fit: contain; 
  background-color: #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery img:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Mobile Responsiveness */
@media screen and (max-width: 600px) {
  .topnav a, .topnav-right {
    float: none;
    display: block;
  }
  
  .topnav-centered a {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
  }
}

@media (max-width: 768px) {
  .gallery img {
    width: calc((100% - 16px) / 2);
    height: 220px;
  }
}

@media (max-width: 480px) {
  #tswcontainer {
    width: 100%;
  }

  .main-layout {
    flex-direction: column;
  }

  #tswcontent, #tswsidecol {
    width: 100%;
    margin-left: 0;
  }

  .gallery img {
    width: 100%;
    height: 200px;
  }

  #tswsidecol {
    position: relative;
    top: 0;
  }

  .sidenav {
    width: 100%;
  }
}