* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #1E1D18;
    background-image: url(images/board.jpg);
    background-position-x: center;
    background-position-y: -100px;
    background-size: 1500px;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
}

.container {
    display: grid;
    grid-template-columns: auto 35%;
    grid-template-rows: repeat(4, auto);
    grid-gap: 15px;
    background-color: #3B3B3BC7;
    width: 90%;
    margin: 25px auto;
    border-radius: 6px;
}

.left-pane, .right-pane {
    height: 100%;
}

.left-pane {
    padding: 20px;
}

.right-pane {
    padding: 20px;
    grid-column: 2;
    grid-row-start: span 4;
    overflow: visible;
}

.container2 {
    background-color: #3B3B3BC7;
    width: 90%;
    margin: auto;
    margin-top: 25px;
    margin-bottom: 25px;
    border-radius: 6px;
    padding: 15px;
}

div.contact-links {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
  min-height: 0;
  text-align: center;
}

h1.center,h2.center,h3.center,p.center {
  text-align: center;
}

h1,h2,h3,p,a,label,input,::placeholder {
    font-family: 'Open Sans', sans-serif;
    font-weight: 450;
}

h1,h2,h3,p,a {
    padding: 10px
}

p {
    font-size: 1.2em;
}

a {
    color: #F28E34;
}

a:hover {
    color: #d48138;
}

.strong {
    font-weight: bold;
}

li {
    font-family: 'Open Sans', sans-serif;
    padding: 5px;
    font-size: 1.2em;
    text-align: center;
    font-weight: 450;
}

ul {
    list-style-type: none;
}

img.center {
    display: block;
    margin: auto;
}

.navbar {
  text-align: center;
  padding: 20px;
}

.gallery-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible; /* CRITICAL: allows rotated corners to show */
    padding: 50px 0;   /* Space for the first and last rotated images */
}

.photo {
    position: relative;
    margin-top: -40px;
    padding: 15px;
    transition: transform 0.3s ease, z-index 0s;
}

.photo:first-child {
    margin-top: 0;
}

.photo:hover {
    z-index: 100 !important; /* Brings hovered image to the front */
    transform: scale(1.1);   /* Slightly enlarges on hover */
}

.photo img {
    width: 100%;
    max-width: 250px;
    border-radius: 6px;
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.509);
    transition: transform 0.3s;
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-height: 250px;
}

a.button {
    color: white;
    background-color: #F28E34;
    padding: 15px;
    text-decoration: none;
    text-transform: uppercase;
    text-wrap: nowrap;
    border-radius: 3px;
}

a.button:hover {
    background-color: #d48138;
}

input,select,textarea {
    margin-bottom: 10px;
    padding: 5px;
    width: 100%;
}

form {
    width: 50%;
    margin: 0 auto;
}

input[type="submit"] {
    width: auto;
    color: white;
    background-color: #F28E34;
    padding: 15px 30px;
    text-decoration: none;
    text-transform: uppercase;
    border: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2em;
    border-radius: 3px;
    font-weight: bold;
}

input[type="submit"]:hover {
    background-color: #d48138;
    cursor: pointer;
}

.buttoncenter {
    display: block;
    margin: 0 auto;
}

.phone-link {
    pointer-events: none; /* Makes the link unclickable */
    cursor: default;     /* Prevents the 'pointer' hand icon */
}

.gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

figure {

    display: inline-block;
    width: 200px;
    height: 150px;
    position: relative;
    overflow: hidden;
    margin: 5px;
}

figure img {
    position: relative;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    font-family: 'Open Sans', sans-serif;
    font-weight: 450;
    width: 100%;
}

figure:hover figcaption {
    transform: translateY(0px);
}

figure:hover {
    cursor: pointer;
}

/* Lightbox Styles */
.lightbox-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    max-width: 80%;
    max-height: 80%;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
}

#lightbox-caption {
    color: white;
    font-size: 1.2em;
    margin-top: 15px;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Navigation Buttons */
.nav-btn {
    background: none;
    border: none;
    color: white;
    font-size: 50px;
    cursor: pointer;
    padding: 20px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: color 0.3s ease;
    user-select: none;
}

.nav-btn:hover {
    color: #F28E34; /* Matching your theme color */
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* mobile responsiveness */
@media (max-width: 768px) {
    .container {
        display: block;
        height: auto;
    }

    .right-pane {
        grid-column: auto;
        grid-row-start: auto;
    }

    .photo {
        max-width: 80%;
    }

    form {
        width: 70%;
    }

    .phone-link {
        pointer-events: auto; /* Re-enables clicking */
        cursor: pointer;      /* Shows the pointer hand icon */
        color: #F28E34;       /* Ensures it looks like a link on mobile */
    }

    .nav-btn {
        font-size: 30px;
        padding: 10px;
    }
}