/* PCRC Cycling Club Theme - Club Rides Page */

/* CSS Variables for your color palette */
:root {
    --deep-blue: #004e9e;
    --light-blue: #1ca2dd;
    --yellow: #ffe400;
    --white: #ffffff;
    --dark-blue: #002f6c;
    --shadow: rgba(0, 78, 158, 0.3);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Animated background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, var(--light-blue) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, var(--yellow) 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px;
    opacity: 0.1;
    z-index: -1;
    animation: backgroundMove 20s linear infinite;
}

@keyframes backgroundMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100px, -100px); }
}

/* EXACT HEADER FROM INDEX.CSS */
header {
    background: linear-gradient(45deg, var(--light-blue), var(--deep-blue));
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--yellow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    max-width: none;
    z-index: 2000;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px var(--shadow);
    border-radius: 0 0 20px 20px;
    animation: slideDown 0.8s ease-out;
    margin: 0;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* EXACT LOGO FROM INDEX.CSS */
.logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05) rotate(2deg);
}

.logo-link {
    text-decoration: none;
    color: var(--yellow);
    font-size: 1.8em;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.logo-image {
    width: 80px;
    height: auto;
    border-radius: 50%;
    border: 3px solid var(--yellow);
    transition: all 0.3s ease;
    animation: glow 2s ease-in-out infinite alternate;
    margin-right: 15px;
}

@keyframes glow {
    from { box-shadow: 0 0 10px var(--yellow); }
    to { box-shadow: 0 0 20px var(--yellow), 0 0 30px var(--yellow); }
}

.logo-image:hover {
    transform: rotate(360deg);
    border-color: var(--white);
}

.logo-text {
    color: var(--yellow);
    font-size: 1.5em;
    font-weight: bold;
}

/* EXACT NAVIGATION FROM INDEX.CSS */
nav {
    display: flex;
    align-items: center;
    z-index: 2001;
    position: relative;
    min-width: 0;
    flex-shrink: 0;
}

.menu {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: nowrap;
}

.menu li {
    position: relative;
}

.menu li a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    padding: 12px 20px;
    border-radius: 25px;
    background: linear-gradient(45deg, transparent, rgba(255, 228, 0, 0.1));
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: block;
}

.menu li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--yellow), transparent);
    transition: left 0.5s ease;
}

.menu li a:hover::before {
    left: 100%;
}

.menu li a:hover {
    background: var(--yellow);
    color: var(--dark-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 228, 0, 0.4);
}

.menu li a:active {
    transform: scale(0.98);
}

/* EXACT DROPDOWN FROM INDEX.CSS */
.dropdown .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--dark-blue);
    border: 2px solid var(--yellow);
    border-radius: 15px;
    padding: 10px 0;
    min-width: 200px;
    box-shadow: 0 10px 30px var(--shadow);
    z-index: 10000;
    list-style: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown:hover .sub-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.sub-menu li {
    width: 100%;
}

.sub-menu li a {
    color: var(--white) !important;
    padding: 12px 20px !important;
    display: block !important;
    text-decoration: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    transition: all 0.3s ease !important;
    transform: none !important;
    box-shadow: none !important;
}

.sub-menu li a:hover {
    background: var(--light-blue) !important;
    color: var(--white) !important;
    padding-left: 30px !important;
    transform: none !important;
    box-shadow: none !important;
}

/* EXACT HAMBURGER FROM INDEX.CSS */
.nav-toggle {
    display: none;
    background: var(--yellow);
    color: var(--dark-blue);
    border: none;
    padding: 10px;
    border-radius: 10px;
    font-size: 1.5em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    transform: rotate(180deg);
    background: var(--white);
}

/* Main Content */
main {
    padding: 140px 20px 60px; /* Increased bottom padding */
    max-width: 1200px;
    margin: 0 auto;
}

/* KEEP ALL EXISTING RIDES CONTENT STYLING */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Rides Section */
.rides-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 228, 0, 0.3);
    border-radius: 20px;
    padding: 50px 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px var(--shadow);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
    text-align: center;
    color: var(--yellow);
}

.rides-section:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px var(--shadow);
    border-color: var(--yellow);
}

.rides-section h1 {
    color: var(--yellow);
    font-size: 2.5em;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(255, 228, 0, 0.5);
    position: relative;
}

.rides-section h1::after {
    content: '🚴‍♀️';
    position: absolute;
    right: -80px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
    animation: rideForward 4s ease-in-out infinite;
}

@keyframes rideForward {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    25% { transform: translateY(-50%) translateX(10px); }
    50% { transform: translateY(-50%) translateX(20px); }
    75% { transform: translateY(-50%) translateX(10px); }
}

.rides-section p {
    font-size: 1.2em;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.8;
    text-align: left;
}

/* Photos Section - SPECIAL GALLERY WITH COOL EFFECTS */
.photos {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 228, 0, 0.3);
    border-radius: 20px;
    padding: 40px 30px;
    margin-bottom: 50px; /* Increased margin */
    box-shadow: 0 8px 32px var(--shadow);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.photos:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px var(--shadow);
    border-color: var(--yellow);
}

/* Style the main heading and description */
.photos h1 {
    color: var(--yellow);
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(255, 228, 0, 0.6);
    background: linear-gradient(45deg, var(--yellow), var(--light-blue));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    padding: 20px 0;
}

.photos h1::before {
    content: '📸';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7em;
    background: linear-gradient(45deg, var(--yellow), var(--light-blue));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: bounce 2s ease-in-out infinite;
}

.photos h1::after {
    content: '📷';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7em;
    background: linear-gradient(45deg, var(--light-blue), var(--yellow));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: bounce 2s ease-in-out infinite;
    animation-delay: 1s;
}

.photos > p {
    color: var(--white);
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 40px;
    padding: 15px 30px;
    background: rgba(0, 78, 158, 0.3);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 228, 0, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.photos > p::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 228, 0, 0.1), 
        transparent);
    animation: shimmer 3s ease-in-out infinite;
}

/* Add some animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(-50%);
    }
    40% {
        transform: translateY(-60%);
    }
    60% {
        transform: translateY(-55%);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Mobile responsive for heading and description */
@media (max-width: 900px) {
    .photos h1 {
        font-size: 2.2em;
        padding: 15px 0;
    }
    
    .photos h1::before,
    .photos h1::after {
        font-size: 0.6em;
    }
    
    .photos h1::before {
        left: 15px;
    }
    
    .photos h1::after {
        right: 15px;
    }
    
    .photos > p {
        font-size: 1.1em;
        padding: 12px 25px;
        margin-bottom: 35px;
    }
}

@media (max-width: 768px) {
    .photos h1 {
        font-size: 2em;
        padding: 12px 0;
    }
    
    .photos h1::before,
    .photos h1::after {
        font-size: 0.5em;
    }
    
    .photos h1::before {
        left: 10px;
    }
    
    .photos h1::after {
        right: 10px;
    }
    
    .photos > p {
        font-size: 1em;
        padding: 10px 20px;
        margin-bottom: 30px;
    }
}

@media (max-width: 600px) {
    .photos h1 {
        font-size: 1.8em;
        padding: 10px 0;
    }
    
    .photos h1::before,
    .photos h1::after {
        display: none; /* Hide camera icons on small screens */
    }
    
    .photos > p {
        font-size: 0.95em;
        padding: 8px 15px;
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    .photos h1 {
        font-size: 1.6em;
    }
    
    .photos > p {
        font-size: 0.9em;
        padding: 6px 12px;
        margin-bottom: 20px;
    }
}

/* Photos Section - SPECIAL GALLERY WITH COOL EFFECTS */
.photos {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 228, 0, 0.3);
    border-radius: 20px;
    padding: 40px 30px;
    margin-bottom: 50px; /* Increased margin */
    box-shadow: 0 8px 32px var(--shadow);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.photos:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px var(--shadow);
    border-color: var(--yellow);
}

/* Fix photo gallery structure */
.photo-gallery {
    margin-bottom: 50px; /* Add space between galleries */
}

/* Gallery headings - make them prominent and separate */
.photo-gallery h2 {
    color: var(--yellow);
    font-size: 2.2em;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 228, 0, 0.5);
    position: relative;
    padding: 20px 0;
    border-bottom: 3px solid var(--yellow);
    background: rgba(0, 78, 158, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.photo-gallery h2::after {
    content: '📸';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
    animation: cameraFlash 3s ease-in-out infinite;
}

/* Create proper grid layout without the h2 in the grid */
.photo-gallery {
    display: block; /* Change from grid to block */
    margin-bottom: 50px;
}

/* Create a separate container for just the images */
.gallery-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* Move all ride-photo styles to the new container */
.gallery-images .ride-photo {
    width: 100%;
    height: 220px; /* Increased from 200px */
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid var(--yellow);
    box-shadow: 0 8px 25px var(--shadow);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

/* Keep all existing hover effects for .gallery-images .ride-photo */
.gallery-images .ride-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(255, 228, 0, 0.3) 0%, 
        rgba(28, 162, 221, 0.3) 50%, 
        rgba(255, 228, 0, 0.3) 100%);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1;
}

.gallery-images .ride-photo::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 2em;
    color: var(--white);
    background: rgba(0, 78, 158, 0.8);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    z-index: 2;
    border: 3px solid var(--yellow);
}

.gallery-images .ride-photo:nth-child(odd):hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 20px 40px var(--shadow);
    border-color: var(--white);
}

.gallery-images .ride-photo:nth-child(even):hover {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 20px 40px var(--shadow);
    border-color: var(--light-blue);
}

.gallery-images .ride-photo:hover::before {
    opacity: 1;
}

.gallery-images .ride-photo:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Additional ride information cards */
.ride-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.ride-info-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 228, 0, 0.3);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
    position: relative;
    overflow: hidden;
}

.ride-info-card:nth-child(1) { animation-delay: 0.9s; }
.ride-info-card:nth-child(2) { animation-delay: 1.0s; }
.ride-info-card:nth-child(3) { animation-delay: 1.1s; }

.ride-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--yellow), var(--light-blue));
    transition: height 0.3s ease;
}

.ride-info-card:hover::before {
    height: 100%;
    opacity: 0.1;
}

.ride-info-card:hover {
    transform: translateY(-10px);
    border-color: var(--yellow);
    box-shadow: 0 15px 30px var(--shadow);
}

.ride-info-card-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    display: block;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { 
        transform: translateY(0); 
    }
    40% { 
        transform: translateY(-8px); 
    }
    60% { 
        transform: translateY(-4px); 
    }
}

.ride-info-card h3 {
    color: var(--yellow);
    margin-bottom: 15px;
    font-size: 1.3em;
}

.ride-info-card p {
    color: var(--white);
    line-height: 1.6;
}

/* Upcoming rides timeline */
.upcoming-rides {
    background: linear-gradient(45deg, var(--light-blue), var(--deep-blue));
    border: 3px solid var(--yellow);
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    animation: fadeInUp 0.8s ease-out;
    animation-delay: 1.2s;
    animation-fill-mode: both;
}

.upcoming-rides h2 {
    color: var(--yellow);
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.rides-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.timeline-ride {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    border-left: 5px solid var(--yellow);
}

.timeline-ride:hover {
    transform: scale(1.02);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 20px var(--shadow);
}

.ride-date {
    color: var(--yellow);
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.ride-title {
    color: var(--white);
    margin-bottom: 8px;
    font-size: 1.2em;
    font-weight: bold;
}

.ride-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9em;
    line-height: 1.5;
}

/* EXACT FOOTER FROM INDEX.CSS */
footer {
    background: linear-gradient(45deg, var(--light-blue), var(--deep-blue));
    color: var(--yellow);
    text-align: center;
    padding: 40px 20px; /* Increased padding */
    margin-top: 60px; /* Increased margin */
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px var(--shadow);
    transition: all 0.3s ease;
    border-top: 3px solid var(--yellow);
    position: relative;
    z-index: 10;
}

/* Add a separator line before footer */
footer::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--yellow), transparent);
}

/* Social Links - exact from Index.CSS */
.social-links {
    margin: 15px 0;
    text-align: center;
}

.facebook-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1877f2;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 15px;
    border: 2px solid #1877f2;
    border-radius: 25px;
    background: linear-gradient(135deg, #ffffff, #f0f8ff);
    transition: all 0.3s ease;
    font-size: 1em;
}

.facebook-link:hover {
    background: #1877f2;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.3);
}

.facebook-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(24, 119, 242, 0.2);
}

.facebook-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    fill: currentColor;
}

.facebook-link:hover .facebook-icon {
    transform: scale(1.1);
}

/* EXACT RESPONSIVE FROM INDEX.CSS */
@media (max-width: 1200px) {
    .menu {
        gap: 10px;
    }
    
    .menu li a {
        padding: 10px 15px;
        font-size: 1em;
    }
}

@media (max-width: 900px) {
    header {
        width: 100vw;
        left: 0;
        right: 0;
        max-width: none;
    }
    
    main {
        padding: 160px 20px 50px;
    }
    
    nav {
        width: 100%;
        justify-content: center;
        position: relative;
        z-index: 2001;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--dark-blue);
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 10000;
        border-radius: 0 0 20px 20px;
        padding: 20px 0;
        gap: 0;
    }
    
    .menu.active {
        display: flex;
        animation: slideDown 0.5s ease;
    }
    
    .menu li {
        padding: 10px 0;
        text-align: center;
        width: 100%;
    }
    
    /* Rides content mobile adjustments */
    .rides-section,
    .photos {
        padding: 30px 20px;
        font-size: 1em;
    }
    
    .rides-section h1 {
        font-size: 2em;
    }
    
    .rides-section h1::after {
        right: -60px;
        font-size: 0.7em;
    }
    
    .photos h2::after {
        right: -50px;
        font-size: 0.7em;
    }
    
    .photo-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .ride-photo {
        height: 200px;
    }
    
    .ride-info-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .rides-timeline {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .logo-image {
        width: 60px;
    }
    
    .logo-text {
        font-size: 1.2em;
    }
    
    .rides-section,
    .photos {
        padding: 20px 15px;
        font-size: 0.95em;
    }
    
    .rides-section h1 {
        font-size: 1.8em;
    }
    
    .rides-section h1::after,
    .photos h2::after {
        display: none;
    }
    
    .photo-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .ride-photo {
        height: 180px;
    }
    
    .ride-info-card {
        padding: 20px 15px;
    }
    
    .upcoming-rides {
        padding: 25px 15px;
    }
    
    .timeline-ride {
        padding: 15px;
    }
}

/* Mobile adjustments */
@media (max-width: 900px) {
    main {
        padding: 160px 20px 50px;
    }
    
    .gallery-images {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        margin-top: 30px;
    }
    
    .gallery-images .ride-photo {
        width: 100%;
        height: 220px; /* Increased from 200px */
        object-fit: cover;
        border-radius: 15px;
        border: 3px solid var(--yellow);
    }
    
    .photo-gallery h2 {
        font-size: 1.8em;
        padding: 15px 0;
    }
    
    .photo-gallery h2::after {
        right: 15px;
        font-size: 0.7em;
    }
}

@media (max-width: 768px) {
    .gallery-images {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 18px;
    }
    
    .gallery-images .ride-photo {
        height: 200px; /* Consistent height */
        max-height: none; /* Remove max-height restrictions */
    }
}

@media (max-width: 600px) {
    .gallery-images {
        grid-template-columns: 1fr 1fr; /* Two columns on mobile */
        gap: 15px;
    }
    
    .gallery-images .ride-photo {
        height: 180px;
        max-height: none; /* Remove conflicting max-height */
    }
    
    .photo-gallery h2 {
        font-size: 1.6em;
        padding: 12px 0;
    }
}

@media (max-width: 480px) {
    .gallery-images {
        grid-template-columns: 1fr; /* Single column on very small screens */
        gap: 12px;
    }
    
    .gallery-images .ride-photo {
        height: 200px; /* Larger on single column */
        max-height: none;
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 400px) {
    .gallery-images .ride-photo {
        height: 180px;
        max-height: none;
    }
}

/* Remove conflicting styles that are causing cutoff */
@media (max-width: 600px) {
    /* Override the generic photo styles */
    .ride-photo {
        max-height: none !important; /* Remove restrictive max-height */
    }
}

@media (max-width: 480px) {
    .ride-photo {
        max-height: none !important;
    }
}

@media (max-width: 400px) {
    .ride-photo {
        max-height: none !important;
    }
}

/* Ensure container doesn't restrict images */
.photos {
    padding: 30px 20px;
    overflow: visible;
}

@media (max-width: 768px) {
    .photos {
        padding: 25px 15px;
    }
}

@media (max-width: 480px) {
    .photos {
        padding: 20px 10px;
    }
}

/* FORCE FIX FOR IMAGE CUTOFF - ADD AT THE VERY END */
@media (max-width: 900px) {
    .gallery-images .ride-photo {
        height: 250px !important;
        max-height: none !important;
        min-height: auto !important;
        object-fit: cover !important;
    }
}

@media (max-width: 768px) {
    .gallery-images .ride-photo {
        height: 220px !important;
        max-height: none !important;
    }
}

@media (max-width: 600px) {
    .gallery-images .ride-photo {
        height: 200px !important;
        max-height: none !important;
    }
}

@media (max-width: 480px) {
    .gallery-images .ride-photo {
        height: 220px !important;
        max-height: none !important;
    }
}

@media (max-width: 400px) {
    .gallery-images .ride-photo {
        height: 200px !important;
        max-height: none !important;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
    animation: zoomIn 0.3s ease;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(255, 228, 0, 0.3);
    border: 3px solid var(--yellow);
}

/* Close button */
.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: var(--yellow);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    background: var(--yellow);
    color: var(--dark-blue);
    transform: scale(1.1);
}

/* Navigation buttons */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--yellow);
    border: none;
    padding: 20px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--yellow);
    color: var(--dark-blue);
    transform: translateY(-50%) scale(1.1);
}

/* Caption */
.lightbox-caption {
    color: var(--yellow);
    font-size: 18px;
    margin-top: 15px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { 
        transform: scale(0.8);
        opacity: 0;
    }
    to { 
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile responsive lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .lightbox-close {
        top: -40px;
        right: -10px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        padding: 15px;
        font-size: 20px;
    }
    
    .lightbox-prev {
        left: -50px;
    }
    
    .lightbox-next {
        right: -50px;
    }
    
    .lightbox-caption {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .lightbox-content {
        max-width: 98%;
        max-height: 98%;
    }
    
    .lightbox-close {
        top: -35px;
        right: -5px;
        width: 35px;
        height: 35px;
        font-size: 25px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        padding: 12px;
        font-size: 18px;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .lightbox-prev {
        left: -45px;
    }
    
    .lightbox-next {
        right: -45px;
    }
    
    .lightbox-caption {
        font-size: 14px;
        margin-top: 10px;
        padding: 8px;
    }
    
    .lightbox-content img {
        max-height: 70vh;
    }
}

/* Add cursor pointer to gallery images */
.gallery-images .ride-photo {
    cursor: zoom-in;
}

.gallery-images .ride-photo:hover::after {
    content: '🔍 Click to enlarge';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: var(--yellow);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 3;
}

