/* --variables */
:root {
  --gold: rgb(226, 170, 71);
  --gold-hover: rgb(206, 150, 51);
  --white: #ffffff;
  --black: rgb(9,10,13);
  --font-main: 'Times New Roman', serif;
}
.word-wrapper {
    /* display: inline-flex; */
    align-items: baseline;
    /* margin-right:-20px */
    vertical-align: bottom;
    margin-right: -0.5em; 
    /* white-space: nowrap; */
}
.white{
  color:white;
}


.golden, dt.golden, dd.golden{
  color:var(--gold)
}
h1, h2, h3, h4 {
  
  /* These are your existing rules from the h1, h2, h3, h4 block */
  color: var(--gold);
  font-family: var(--font-main);
  text-align: center; /* This centers the text *inside* the block */

  /* --- ADD THESE 3 LINES TO CENTER THE BLOCK ITSELF --- */
  max-width: 100%; /* Set your desired max-width */
  margin-left: auto;
  margin-right: auto;
}
h1{
  font-size: 40px;
}
h2{
  font-size: 30px;
}
h3{
  font-size: 25px;
}
h4{
  font-size: 20px;
}

p{

    max-width:75%; /* Your desired width */
    margin-left: auto;   /* <-- KEY FIX 1 */
    margin-right: auto;  /* <-- KEY FIX 2 */
    text-align: center !important; /* Force Left Alignment */
    word-spacing: normal !important; /* Reset Spacing Between Words */
    letter-spacing: normal !important; /* Reset Spacing Between Letters */
    hyphens: manual !important;
    /* Keep these other rules you had, just separate them out if you need to override */
    font-size: 125%;
    font-family: var(--font-main);
    color: var(--white);
    list-style-type: none;
    word-break: normal;
    white-space: normal;
    line-height:1em;
 

}

ul, li {
  font-size:25px;
  font-family: var(--font-main);
  color: var(--white);
  list-style-type: none;
  
 
}


ul{
  text-align: center;
}

.main-nav {
    /* 1. Center all inline/inline-block elements (the links and dropdowns) */
    text-align: center;
    
    /* 2. OPTIONAL: If the nav element itself is stretching too wide, 
       you can constrain its width and center the block, 
       but usually text-align: center is enough for navigation links. 
       If you need to ensure the nav element itself is centered, use this: */
    /* max-width: 800px; */ 
    /* margin: 0 auto; */
}

/* Ensure the links are displayed in a way that allows them to be centered */
.main-nav a, 
.main-nav .dropdown {
    /* Links and dropdowns are typically already inline-block or inline, 
       but ensuring this is a good practice. */
    display: inline-block;
    /* You may need to adjust vertical alignment depending on your full CSS */
    vertical-align: top; 
}

  .bolded, .main-nav a.bolded {
  font-weight: bold;
  /* color: #ffae34; bright orange base */
  color: var(--black);
  /* text-transform: uppercase; */
  animation: fireGlow 1s ease-in-out infinite alternate;
}



dt, dd{
  text-align: left;
}

/* centering & containers */
.centered {
  text-align: center;
  margin: 0;
}

.container {
  text-align: center;
}
main.container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    /* align-items: stretch; instead of center */
    min-height: auto;
}



.section {
  padding: 15px 20px;
  margin: 5px auto;
  position: relative;
  /* max-width: 1200px; */
}

/* Button styles */
.button,
.beer-menu-btn,
.submit-btn,
.directions-link a {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--gold);
  color: var(--black);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-family: var(--font-main);
}

.button:hover,
.beer-menu-btn:hover,
.submit-btn:hover,
.directions-link a:hover {
  background-color: var(--gold-hover);
  color:white;
}

/* link reset rule */
a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.5px;
  font-weight: 500;
}

nav a:hover {
  color: var(--gold);
}

nav a.active {
  color: var(--gold);
  font-weight: bold;
}

a:hover,
a:focus {
  color: var(--gold);
}

/* ===== Section divider lines ===== */
.section--lined {
  position: relative;
  padding: 60px 40px;
  margin: 60px auto;
  max-width: 1200px;
  box-sizing: border-box;
  display: flex;
  /* justify-content: center; */
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.section--lined > * {
  margin: 0 auto;
  max-width: 90%;
}

.section--lined::before,
.section--lined::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 2px;
  background-color: var(--white);
}

.section--lined::before { top: 15px; }
.section--lined::after  { bottom: 40px; }

/* ===== Two-column grid for information (hours + events) ===== */
.information {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 80px;
  align-items: start;
  text-align: left;
  padding: 20px;
  margin: 0 auto;
  max-width: 1200px;
  box-sizing: border-box;
}

.information .text-content,
.information .entertainment {
  padding-left: 5px;
  background-color: none;
  padding-bottom: 25px;
  border-radius: 5px;
}
.text-content dd.golden,
.information dd.golden {
  color: var(--gold);
}

.information.with-divider {
  position: relative;
}

.information.with-divider::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 50%;
  width: 1px;
  background-color: rgba(255,255,255,0.12);
  transform: translateX(-50%);
  pointer-events: none;
}

.information dl, .information dt, .information dd {
  margin: 0;
  padding: 0;
}

.information dt { 
  margin-left: 10%;
  font-weight: bold; 
  margin-top: 10px; 
}

.information dd { 
  margin-left: 20%; 
  color: var(--white); 
  margin-bottom: 8px; 
}
.information dd.bolded {
  font-weight: bold;
  color: var(--gold);
}


/* Responsive: stack columns on smaller screens */
@media (max-width: 880px) {
  
  .information {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 20px;
  }

  .information.with-divider::before { 
    display: none; 
  }
}

/* dropdown selection: */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #333;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #555;
}

.dropdown:hover .dropdown-content {
  display: block;
}


/* Outline the center image */
.gif-outline {
  border: 5px solid rgb(226, 170, 71);
  box-shadow: 0 0 20px rgba(226, 170, 71, 0.3);
  margin: 20px auto;
  display: block;
  width: 40%;
  height: auto;
}

/* === Two-column section layout (used for highlighted-wines etc.) === */
.highlighted-wines {
  display: flex;
  align-items: center;
  /* justify-content: space-between; */
  gap: 25px;
  max-width: 65%;
  margin: 10px auto;
  padding: 60px 40px;
  box-sizing: border-box;
}

.highlighted-wines .text-content,
.highlighted-wines .image-content {
  flex: 1;
  text-align: center;
}

.highlighted-wines .image-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.highlighted-wines.reverse {
  flex-direction: row-reverse;
}

/* Stack vertically on smaller screens */


/* Calendar Section */
.calendar {
  padding: 60px 40px;
  margin: 60px auto;
  max-width: 1200px;
  text-align: center;
}

#calendar {
  max-width: 900px;
  margin: 0 auto;
}

/* customer beer suggestions form */
.left-align-form {
  text-align: left;
  max-width:100%;
  margin: 0 auto;
}

.left-align-form .form-group label {
  display: block;
  margin-bottom: 6px;
}

.left-align-form .form-group input,
.left-align-form .form-group textarea {
  width: 100%;
  box-sizing: border-box;
}

.left-align-form .beer-options label {
  display: inline-block;
  margin-right: 12px;
}

.map {
  display: flex;
  flex-direction: column;
  align-items: center; /* centers children horizontally */
  width: 100%;
  padding: 20px 0;
}

.map iframe {
  width: 100%;
  max-width: 1200px;
  height: 400px;
  border: 0;
}

.directions-link {
  margin-top: 20px;
  text-align: center;
}

.directions-link a {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--gold);
  color: var(--black);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-family: var(--font-main);
}

.directions-link a:hover {
  background-color: var(--gold-hover);
  color: white;
}


/* Booking form */
.firetruck-booking {
  background-color: #111;
  color: white;
  padding: 40px 20px;
  max-width: 70%;
  margin: 60px auto;
  border-top: 2px solid rgb(226, 170, 71);
  border-bottom: 2px solid rgb(226, 170, 71);
  text-align: left;
  font-family: 'Times New Roman', serif;
}

.firetruck-booking h2 {
  color: rgb(226, 170, 71);
  text-align: center;
  margin-bottom: 20px;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

label {
  margin-bottom: 5px;
  font-weight: bold;
}

input, select, textarea {
  padding: 10px;
  border: 1px solid #444;
  border-radius: 5px;
  background-color: #222;
  color: white;
  font-size: 1rem;
}

input[type="date"] {
  color-scheme: dark;
}

.beer-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.beer-options label {
  font-weight: normal;
}

.submit-btn {
  align-self: center;
  padding: 12px 30px;
  background-color: rgb(226, 170, 71);
  color: black;
  font-size: 1.1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: rgb(206, 150, 51);
}

.site-footer{
  padding-top: 20px;
  text-align: center;
}
.site-header{
  text-align: center;
}

@keyframes fireGlow {
  0% {
    text-shadow:
      0 0 10px #fff6b9,
      0 -2px 15px #ffec85,
      0 -5px 25px #ffae34,
      0 -8px 35px #ec760c,
      0 -10px 45px #cd4606,
      0 -15px 55px #972d16;
  }
  100% {
    text-shadow:
      0 0 15px #fff6b9,
      0 -2px 20px #ffec85,
      0 -5px 30px #ffae34,
      0 -8px 40px #ec760c,
      0 -10px 50px #cd4606,
      0 -15px 60px #972d16;
  }
}

.bolded.burn {
  animation: fireGlow 0.7s ease-in-out infinite alternate;
}
/* CSS for Fancy Logo done in CSS*/
  /* Golden square - top left corner */
  .gold-square {
      position: absolute;
      top: 0;
      left: 0;
      width: 10px;
      height: 10px;
      background: linear-gradient(135deg, #E8A643 0%, #F4C563 50%, #D4A853 100%);
  }

  /* Black gap */
  .black-gap {
      position: absolute;
      top: 0;
      left: 12px;
      width: 2px;
      height: 10px;
      background: #000;
  }

  /* White horizontal top bar - right side */
  .t-top-right {
      position: absolute;
      top: 0;
      left: 14px;
      width: 36px;
      height: 10px;
      background: white;
  }

  /* White vertical stem */
  .t-stem {
      position: absolute;
      top: 10px;
      left: 21px;
      width: 8px;
      height: 57px;
      background: white;
  }

  /* Left top serif */
  .t-top-left-serif {
      position: absolute;
      top: 0;
      left: 0px;
      width: 6px;
      height: 15px;
      background: linear-gradient(135deg, #E8A643 0%, #F4C563 50%, #D4A853 100%);
  }

  /* Right top serif */
  .t-top-right-serif {
      position: absolute;
      top: 0;
      left: 44px;
      /* right: 0; */
      width: 6px;
      height: 15px;
      background: white;
  }

  /* White serifs at bottom */
  .t-bottom-serif {
      position: absolute;
      bottom: 10px;
      left: 16px;
      width: 18px;
      height: 3px;
      background: white;
  }
  
  .logo-text {
      display: flex;
      align-items: center;
      gap: 0px;
      margin-bottom: 0px;
      justify-content: center;
  }

  .text-part {
      font-family: 'Times New Roman', Times, serif;
      color: white;
      font-size: 75px;
      line-height: 1;
      padding-top: 8px;
  }

  .logo-text .text-part {
    margin-left: -10px; /* Adjust this number until it looks tight */
    display: inline-block; /* Ensures margin is respected */
}

  .letter-t {
      position: relative;
      width: 20px;
      height: 80px;
      padding-right: 35px;
      display: inline-block;
      vertical-align: middle;
      position: relative;
  }

  .letter-t.small {
    transform: scale(0.25);
    transform-origin: center left;
   
  }
  .letter-t span {
    position: absolute;
    display: block;
    margin-right: -20px'
    }

  .letter-t.med {
    transform: scale(0.55);
    margin-right: -17px;
    margin-bottom: 15px;
  }


  .intro.section {
    display: flex;
    flex-direction: column;
    align-items: center; /* horizontal centering */
    gap: 0; /* space between logo, nav, gif-container */
    margin-top: 0;
}
.intro.section .main-nav{
  margin-top:0px;
}
.intro h1, .intro h2, .intro p {
    margin-top: 0;
    margin-bottom: 0; /* adjust as needed */
}

/* untappd section */

  .untappd-section {
  display: flex;
  justify-content: center; 
  width: 100%;             /* take full container width */
  padding: 20px 0;
}

.untappd-section iframe {
  width: 100%;             /* iframe fills parent width */
  max-width: 1200px;       /* optional: don't get too huge on big screens */
  height: 2000px;          /* keep your height or adjust */
}

/* Photgallery section: */
* {
    margin: 0;
    padding: 0;
}
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  /* overflow-x:hidden; */
  
}

body {
  background-image: url("../img/background_2.jpg");
  background-color: var(--black);
  background-size: cover;
  background-attachment: fixed; /* makes it stay put while scrolling */
  background-repeat: no-repeat;
  background-position: center center;
  color: var(--white);
  font-family: var(--font-main);
}

  /**********/
 /* Slider */
/**********/

.slider {
  background-color: var(--black);
  box-shadow: inset 0 0 2px hsla(0,0%,0%,.2),
              0 3px 1px hsla(0,0%,100%,.75),
              0 -1px 1px 2px hsla(0,0%,0%,.1);
  height: 18.75em;
  width: 25em;
  margin: 2em auto;  /* Centers it under nav */
  padding: .5em;
  position: relative; /* Remove absolute positioning */
}


/* Frame */

.slider:before {
    background-color: none;
    bottom: -2.5em;
    /* box-shadow: inset 0 1px 1px 1px hsla(0,0%,100%,.2),
                inset 0 -2px 1px hsla(0,0%,0%,.4),
                0 5px 50px hsla(0,0%,0%,.25),
                0 20px 20px -15px hsla(0,0%,0%,.2),
                0 30px 20px -15px hsla(0,0%,0%,.15),
                0 40px 20px -15px hsla(0,0%,0%,.1); */
    content: '';
    left: -2.5em;
    position: absolute;
    right: -2.5em;
    top: -2.5em;
    z-index: -1;
}

/* Mat */

.slider:after {
    background-color: none;
    bottom: -1.5em;
    /* box-shadow: 0 2px 1px hsla(0,0%,100%,.2),
                0 -1px 1px 1px hsla(0,0%,0%,.4),
                inset 0 2px 3px 1px hsla(0,0%,0%,.2),
                inset 0 4px 3px 1px hsla(0,0%,0%,.2),
                inset 0 6px 3px 1px hsla(0,0%,0%,.1); */
    content: '';
    left: -1.5em;
    position: absolute;
    right: -1.5em;
    top: -1.5em;
    z-index: -1;
}

/* Slides */

.slider li {
    /* box-shadow: 0 -1px 0 2px hsla(0,0%,0%,.03); */
    list-style:none;
    position: absolute;
}
.slider input {
    display: none;
}

/* Navigation */

.slider label {
    background-color: #111;
    background-image: linear-gradient(transparent, hsla(0,0%,0%,.25));
    border: .2em solid transparent;
    bottom: .5em;
    border-radius: 100%;
    cursor: pointer;
    display: block;
    height: .5em;
    left: 24em;
    opacity: 0;
    position: absolute;
    transition: .25s;
    width: .5em;
    visibility: hidden;
    z-index: 10;
}
.slider label:after {
    border-radius: 100%;
    bottom: -.2em;
    box-shadow: inset 0 0 0 .2em #111,
                inset 0 2px 2px #000,
                0 1px 1px hsla(0,0%,100%,.25);
    content: '';
    left: -.2em;
    position: absolute;
    right: -.2em;
    top: -.2em;
}
.slider:hover label {
    opacity: 1;
    visibility: visible;
}
.slider input:checked + label {
    background-color: #fff;
}
.slider:hover li:nth-child(1) label {
    left: .5em;
}
.slider:hover li:nth-child(2) label {
    left: 2em;
}
.slider:hover li:nth-child(3) label {
    left: 3.5em;
}
.slider:hover li:nth-child(4) label {
    left: 5em;
}
.slider:hover li:nth-child(5) label {
    left: 6.5em;
}

/* Images */

.slider img {
    height: 18.75em;
    opacity: 0;
    transition: .25s;
    width: 25em;
    vertical-align: top;
    visibility: hidden;
}
.slider li input:checked ~ img {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}
​


/* Wine list:*/

.wine-menu {
  max-width: 700px;
  margin: 2em auto;
  text-align: left;
  padding: 1em 2em;
  border: 4px solid #d4af37; /* gold outline */
  border-radius: 12px;
  background-color: #fffdf7;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.wine-menu h1 {
  text-align: center;
  color: #b8860b;
  margin-bottom: 0.5em;
}

.wine-menu .subtitle {
  text-align: center;
  font-style: italic;
  color: white;
  margin-bottom: 2em;
}

.wine-category {
  margin-bottom: 2em;
}

.wine-category h2 {
  color: #b8860b;
  border-bottom: 1px solid #d4af37;
  padding-bottom: 0.2em;
  margin-bottom: 0.5em;
}

.wine-category ul {
  list-style: none;
  padding: 0;
}

.wine-category li {
  margin: 0.5em 0;
  line-height: 1.5;
}

.wine-menu .note {
  text-align: center;
  font-size: 0.9em;
  color: #666;
  margin-top: 2em;
  font-style: italic;
}
.wine-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1em 0;
  border-bottom: 1px dashed rgba(184, 134, 11, 0.3);
}

.wine-info {
  max-width: 90%;
}

.wine-info strong {
  font-size: 1.1em;
  color: white;
}

.wine-price {
  margin-top: 0.4em;
  color: #b8860b; /* gold tone */
  font-weight: bold;
  font-size: 0.95em;
}






/* Mobile fix for slider */
@media (max-width: 600px) {
  .main-nav a {
    /* Use a specific pixel or rem value for better control */
    font-size: 10px !important; /* Example: Try 16px or 1rem */
    padding: 5px 3px !important;
    text-align: center !important;
  }

  .intro.main-nav{
    text-align: center !important;
  }

  /* You can keep your .main-nav rule for safety, but it shouldn't be the primary size changer */
  .main-nav {
    /* Ensures the container itself doesn't have excess height */
    line-height: 1.2; 
    text-align: center !important;
  }
  
  body{
    overflow-x:hidden;
  }

  body, html, main{
    margin-left: 0 !important;
    padding-left:0 !important;
  }

    .wine-line {
    flex-direction: column;
    align-items: flex-start;
  }

  .wine-price {
    text-align: left;
    margin-top: 0.2em;
  }
  /* .text-part {
    font-size: 40px;
  } */

  
 
  .slider {
        /* Override the desktop fixed width (25em) and height (18.75em) */
        width: 100% !important; 
        height: auto !important;
        
        /* Remove fixed padding/margins that might cause overflow */
        padding: 0 !important; 
        margin: 1em auto !important; /* Add vertical margin for breathing room */
        
        /* Ensure the complex border/shadow pseudo-elements don't interfere */
        box-sizing: border-box; 
    }
    
    /* 2. Target the list items inside the slider (must match container size) */
    .slider li {
    width: 100% !important;
    height: 100% !important; 
    position: absolute; /* Place the list items over the padding space */
    top: 0;
    left: 0;
  }
  
  /* Make sure the image inside fills the absolute space */
  .slider img {
    width: 100% !important;
    height: 100% !important; /* Image fills the 75% height space */
    object-fit: cover !important; /* Ensures the image covers the area */
  }
    
    /* Re-apply visibility/opacity for the checked image */
    .slider li input:checked ~ img {
        opacity: 1;
        visibility: visible;
        z-index: 10;
    }

    /* 4. Fix Navigation Labels (if they are causing overflow/bad position) */
    .slider label {
        /* Adjust positioning to be relative to the bottom center */
        left: unset !important;
        right: unset !important;
        /* Center the dots */
        position: absolute; 
        transform: none; /* remove any transform that might be causing layout issues */
        bottom: 5px; 
        /* The horizontal positioning will need to be checked in browser */
    }
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 10px !important; /* Safety padding */
        margin: 0 auto !important;
        box-sizing: border-box; 
    }
    .site-header {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box;
    }
    
    /* Specifically target the contact line to ensure text fits */
    .contact-line {
        /* Set font size much smaller for tiny screens */
        font-size: 10px !important; 
        width: 100% !important;
        padding: 5px 10px !important; /* Add some small padding */
        box-sizing: border-box;
    }
    .intro.section.centered {
        width: 100% !important;
        max-width: 100% !important;
        /* Add some horizontal padding inside the section for content safety */
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin: 0 auto !important;
        box-sizing: border-box;
    }
    /* h1,h2,h3,h4,p, ul, li{
      font-size: 100%;
    } */
    .gallery-wrapper .section {
            padding-left: 0 !important;
            padding-right: 0 !important;
        }

        
        .page-title {
            font-size: 2em;
        }
        .gallery-container {
            max-width: 100%;
            /* height: 150%; */
            padding-left: 0;
            margin-left:0;
            /* margin: 20px auto 40px auto; */
            border-radius: 8px;
            /* Allowing a slightly taller aspect ratio on mobile for better fit */
            aspect-ratio: 4 / 3; 
        }
        .page-title {
            font-size: 2em;
        }
.letter-t.med .t-top-right-serif {
  margin-bottom: 20px;
      /* position: absolute;
      top: 0; */
      left: 42px !important;
      /* right: 0; */
      /* width: 6px;
      height: 15px;
      background: white; */
  }
  .letter-t.med .t-stem{
    margin-top: -5px;
    height: 68px;
    /* margin-right: 20px; */
  }


}


/* ============================
   MOBILE FIXES FOR LAYOUT
   ============================ */

/* Only fix the gallery on mobile */

@media (max-width: 768px) {
  .highlighted-wines {
    flex-direction: column;
    text-align: center;
  }
    .privacy_policy {
    max-width: 20%;
    padding: 0 20px;
    text-align: left; /* optional — easier to read on mobile */
  }
  body {
    background-attachment: scroll !important;
  }

  nav {
    gap: 0.7rem;
  }

  .highlighted-wines {
    max-width: 95%;
    flex-direction: column;
    text-align: center;
  }

  .wine-menu {
    max-width: 95%;
    padding: 1em;
  }
  p{
    max-width:80%;
  }


  /* Fix container width collapse */
  .container, main.container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
  }

  /* Ensure all flex sections stack and center */
  .section,
  .venue-info,
  .highlighted-wines,
  .highlighted-wines.reverse {
    display: block !important;
    text-align: center !important;
  }

  

  /* Ensure venue item centers */
  /* .venue-item {
    /* width: 100% !important; */
    /* margin: 0 auto !important; */
    /* text-align: center !important; */
  /* } */ */

  /* Fix images forcing content left */
  img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Remove any hidden horizontal overflow */
  body, html {
    overflow-x: hidden !important;
  }
      .gif-container {
    width: 60% !important;
    max-width: 60% !important;
    margin: 0 auto 20px auto;
    overflow: hidden;
  }

  .gif-outline {
    width: 100% !important;
    height: auto !important;
    margin: 0 auto;
  }

  .slider {
    width: 100% !important;
    height: auto !important;
  }

  .slider li {
    width: 100% !important;
    height: auto !important;
  }

  .slider img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    display: block;
  }
  body, html {
    overflow-x: hidden !important; /* Force no horizontal scrolling */
  }
  /* --- Logo Fix --- */
  /* Centering the Logo */
    .logo-text {
      /* * KEY FIX: Override the default desktop behavior (which doesn't center).
       * If display: flex is set, use justify-content for horizontal centering.
       */
      /* justify-content: center !important;  */
      
      /* You already have these, but keep them for safety: */
      width: 100% !important; 
      margin-left: 0 !important;
      margin-right: 0 !important;
  }
    
    /* Optional: You may also want to ensure the surrounding section is centered */
    .intro.section.centered {
        align-items: center; /* If using flexbox */
        /* justify-content: center; If using flexbox */
        text-align: center; /* For good measure */
    }

  /* --- GIF Container Fix --- */
  .gif-container {
    /* Use 100% width to fill the parent section's safe space */
    width: 100% !important; 
    max-width: 100% !important;
    margin: 0 auto 1.5rem auto !important;
    overflow: hidden; /* Clips the image inside if necessary */
    box-sizing: border-box;
  }
  
  .gif-outline {
    width: 100% !important;
    height: auto !important;
    margin: 0 auto;
    box-sizing: border-box; /* Includes the 5px border inside the 100% width */
  }
    /* ----------------------------------------------------
       FIX 1: GIF Container on Index Page (Simple Image)
       ---------------------------------------------------- */
    /* Target only .gif-container containing a direct child image (.gif-outline) */
    .gif-container > .gif-outline {
        width: 100% !important;
        height: auto !important; /* Let image define height */
        max-width: 100% !important;
        margin: 0 auto;
        display: block;
        box-sizing: border-box;
    }
    
    .gif-container {
        /* Reset any height/padding tricks for the Index page's wrapper */
        height: auto !important;
        padding-top: 0 !important;
        /* Re-center the Index page container */
        width: 90% !important; 
        max-width: 90% !important;
        margin: 0 auto 20px auto;
    }
    
    /* ----------------------------------------------------
       FIX 2: Slider on About Us Page (Complex UL Structure)
       ---------------------------------------------------- */
    /* Use a combined selector to target the slider UL specifically */
    .gif-container .slider {
        /* Set the aspect ratio on the slider UL itself, as it's the item that has the fixed dimensions */
        position: relative !important;
        padding-top: 75% !important; /* Aspect Ratio */
        height: 0 !important; /* Collapse height to padding */
        width: 100% !important;
        margin: 0 !important;
        box-shadow: none !important;
    }

    .gif-container .slider li {
        /* Ensure list items are absolute to fill the 75% padding */
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
    }

    .gif-container .slider li img {
        /* Ensure images fill the absolute list item */
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* Target the border (.gif-outline is on the UL here) */
    .slider.gif-outline { 
        border: 5px solid rgb(226, 170, 71);
        box-shadow: 0 0 20px rgba(226, 170, 71, 0.3);
        box-sizing: border-box;
    }


    /* 2. Target the UL (the slider) and make it absolutely fill the wrapper */
    .slider {
        position: absolute !important; /* NEW: Absolute position to fill the 75% height area */
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important; /* Fills the height created by .gif-container's padding */
        
        /* Remove its own padding/margin that might cause it to collapse or overflow */
        padding: 0 !important; 
        margin: 0 !important;
        box-shadow: none !important; /* Optional: Remove box-shadow/border from the UL if preferred */
    }

    /* 3. Ensure the list items and images fill the new 100% space */
    .slider li {
        width: 100% !important;
        height: 100% !important;
        position: absolute;
        top: 0;
        left: 0;
    }
    
    .slider img {
        width: 100% !important;
        height: 100% !important; /* Fills the height */
        object-fit: cover !important;
        /* Also remove fixed desktop sizing for safety */
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 4. Fix the Border (The .gif-outline is now on the UL, not the wrapper) */
    .gif-outline {
        border: 5px solid rgb(226, 170, 71);
        box-shadow: 0 0 20px rgba(226, 170, 71, 0.3);
        margin: 0 !important; /* Reset desktop margin */
        padding: 0 !important;
        box-sizing: border-box;
    }
    
    /* Ensure .gif-outline itself fills the slider area */
    .slider.gif-outline { 
        width: 100% !important;
        height: 100% !important;
    }
    h1 .golden {
    display: flex !important;
    align-items: baseline !important; /* Forces the 'feet' of the T and text to align */
    justify-content: center;
    white-space: nowrap !important;   /* Prevents wrapping to a second line */
    gap: 0px;                        /* Controlled spacing */
    line-height: 1 !important;
  }

  /* 2. Tighten the box around the T so it doesn't leave gaps or ghost space */
  .letter-t.med {
    /* width: 18px !important;   /* The actual width the scaled T occupies */
    /* height: 28px !important;  The actual height the scaled T occupies */
    transform: scale(0.4) !important;
    /* transform-origin: left !important;  */
    /* display: inline-block !important; */
    /* position: relative;  */
    top: 44px;
    margin-right: 2px !important; /* Pulls the 'he' or 'aps' closer */
    /* top: 44px; ADJUST THIS: Move up/down by 1px to hit the baseline perfectly */
  
  }


  /* 3. Ensure the text parts don't have extra padding */
  .text-part, h1 span {
    font-size: 28px !important; /* Adjust size to fit screen width */
    display: inline-block !important;
    vertical-align: baseline !important;
  } 

  .letter-t.med {
        transform: scale(0.35) !important; /* Smaller logo for mobile */
        width: 20px !important;            /* Tightens the container width */
        margin-right: -25px !important;    /* Pulls 'he' and 'aps' closer */
    }

    /* 2. Squeeze 'The' and 'Taps' together */
    .golden-header {
       display: inline-flex;
        flex-wrap: wrap;       /* This allows "The Taps" to drop below "Welcome to" */
        justify-content: center;
        gap: 8px; 
    }

    /* 3. Adjust the main header size so it doesn't wrap */
    h1 {
        font-size: 1.8rem !important; 
        line-height: 1.2;
    }

    .fire-script {
    margin-right: -25px !important;
    margin-left: -5px !important; /* Adjust pixels as needed */
}
.cursive_red {
    /* margin-right: -25px !important; */
    margin-left: -5px !important; /* Adjust pixels as needed */
}

}

/* calendar of events: */

   /* FullCalendar container centered */
    #calendar {
      max-width: 900px;
      margin: 20px auto 40px auto;
      background-color: #111;
      padding: 20px;
      border-radius: 8px;
    }

    /* Main container for the event list (only centers itself on the page) */
    .event-list {
      max-width: 100%;
      margin: 10px auto;
      background-color: #111;
      padding: 0px;
      border-radius: 8px;
      /* Remove all text/content alignment from the parent */
      text-align: initial; 
    }
    
    /* CRITICAL FIX: Center the wrapper block and its contents */
    .centered-wrapper {
        /* Set a max width for the content block */
        max-width: 600px !important; 
        /* Force the block to center itself */
        margin: 0 auto !important;
        /* Center the H2 title, which is now inside */
        text-align: center;
    }

    /* Ensure the H2 remains centered */
    .centered-wrapper h2 {
        text-align: center;
    }

    /* Styles for the dynamic list container */
    #events-container {
        width: 100%;
        /* Ensure the individual event details are left-aligned for readability */
        text-align: left !important;
    }

    /* Styles for individual event entries */
    .event-item {
      border-bottom: 1px solid rgba(255,255,255,0.2);
      padding: 10px 0;
      /* Ensure text is left-aligned */
      text-align: left; 
    }

    .event-item:last-child {
      border-bottom: none;
    }

    .event-item h3, .event-item h4 {
      margin: 0;
      color: rgb(226, 170, 71);
    }

    .action-btn {
      display: inline-block;
      margin-top: 10px;
      padding: 10px 20px;
      background-color: rgb(226, 170, 71);
      color: #000;
      font-weight: bold;
      border-radius: 5px;
      text-decoration: none;
      cursor: pointer;
    }

    .action-btn:hover {
      background-color: rgb(206, 150, 51);
      color: #fff;
    }

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

    /* input for booking form:
     */
     .custom-input {
      display: none;
      margin-top: 8px;
      padding: 8px;
      border-radius: 4px;
      border: 1px solid #444;
      background: #222;
      color: white;
      width: 100%;
      box-sizing: border-box;
    }
    .beer-options label { margin-right: 12px; display:inline-block; }


    /* Gallery Styles: */
    html, body {
        margin: 0;
        padding: 0;
        /* overflow-x: hidden; Prevents the horizontal shift issue */
    }

    /* Container for the slideshow */
.gallery-container {
          position: relative;
          
          /* 1. Responsive width but with a "Cap" */
          width: 90vw; 
          max-width: 2000px; /* This prevents it from getting too large on big screens */
          
          /* 2. Remove the forced 30vw height */
          height: auto !important;
          
          /* 3. Mobile-first Aspect Ratio */
          aspect-ratio: 16 / 9; 

          /* 4. Centering Logic */
          left: 50%;
          transform: translateX(-50%);
          margin: 20px 0 60px 0; 
          
          overflow: hidden;
          border: 4px solid #ffcc00; 
          border-radius: 12px;
          box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

    /* Individual image in the slideshow */
    .gallery-image {
      width: 100%;
      height: 100%;
      position: absolute;
      top: 0;
      left: 0;
      object-fit: cover; /* Ensures the image covers the area without distortion */
      opacity: 0;
      transition: opacity 1s ease-in-out; /* Smooth fade transition */
    }

    .gallery-image.active {
      opacity: 1;
    }

    /* Page title styling */
    .page-title {
        text-align: center;
        margin-top: 20px;
        font-size: 2.5em; /* Large size */
        color: #ffcc00; /* Gold color */
        font-weight: bold;
    }

    /* Responsive adjustments for the gallery container */


  .fire-script {
    font-family: 'Yellowtail', cursive; /* The script font */
    color: #e60000; /* Bright Sign Red */
    font-weight: 400; /* Scripts don't usually need bold */
    font-size: 1.3em; /* Makes it slightly larger than surrounding text */
    letter-spacing: 1px; /* specific spacing for this font */
    display: inline-block;
    transform: rotate(-4deg); /* Adds that slight hand-painted tilt seen in signs */
    margin: 0 3px;
}
 .cursive_red {
    font-family: 'Yellowtail', cursive; /* The script font */
    color: #e60000; /* Bright Sign Red */
    font-weight: 400; /* Scripts don't usually need bold */
    font-size: 1.3em; /* Makes it slightly larger than surrounding text */
    letter-spacing: 1px; /* specific spacing for this font */
    display: inline-block;
    transform: rotate(-4deg); /* Adds that slight hand-painted tilt seen in signs */
    margin: 0 3px;
}


 /* Custom styling for the form fields we are controlling with JS */
    .custom-input {
        display: none; /* Ensure it is hidden by default */
        margin-top: 5px;
        border: 1px solid #d4af37; /* Gold border for visual emphasis */
        padding: 8px;
        width: 100%;
        box-sizing: border-box;
    }

    /* General styling (retained from original for structure) */
    .left-align-form .form-group {
        margin-bottom: 20px;
    }
    .left-align-form label {
        display: block;
        margin-bottom: 5px;
        font-weight: bold;
    }
    .left-align-form input[type="text"], 
    .left-align-form input[type="email"], 
    .left-align-form select, 
    .left-align-form textarea {
        width: 100%;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
        box-sizing: border-box;
    }

    /* This targets the paragraphs inside your container */
.gif-container p {
    max-width: 750px; /* Using pixels is often better for readability than % */
    /* margin-left: auto; */
    /* margin-right: auto; */
    /* margin-bottom: 20px  ; */
    /* width: 90%; Default for mobile: nice and wide */
}
@media (max-width: 480px) {
  /* Shrink the overall container of the T */
  .letter-t.med {
    width: 20px;         /* Adjust this value based on your T's size */
    margin-right: -2px;  
  }

  /* If your internal parts (stem, top) are absolute positioned, 
     you might need to scale them down too */
  .letter-t.med span {
    transform: scale(0.8); /* Shrinks the T components by 20% */
    transform-origin: left center;
  }
  
  /* Ensure the text doesn't wrap awkwardly */
 
}