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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background: #2c3e50;
    color: white;
    padding: 20px 0;
    margin-bottom: 30px;
}

header h1 {
    text-align: center;
    font-size: 2em;
}

header h1 a {
    color: white;
    text-decoration: none;
}

/* Navigation */
nav {
    background: #34495e;
    padding: 10px 0;
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 5px 15px;
    border-radius: 5px;
    transition: background 0.3s;
}

nav a:hover {
    background: #2c3e50;
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card h2, .card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.btn:hover {
    background: #2980b9;
}

/* Info Sections */
.info-section {
    margin: 20px 0;
}

.info-section h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

/* Tags and Categories */
.tags, .categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.tag, .category {
    background: #ecf0f1;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    transition: background 0.3s;
    cursor: pointer;
}

.tag:hover, .category:hover {
    background: #3498db;
    color: white;
}

/* Hours Table */
.hours-table {
    width: 100%;
    margin-top: 10px;
}

.hours-table td {
    padding: 8px;
    border-bottom: 1px solid #ecf0f1;
}

.hours-table td:first-child {
    font-weight: bold;
    width: 120px;
}

/* Photo Gallery */
.photo-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-behavior: smooth;
}

.photo-thumbnail {
    flex: 0 0 150px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
    border: 2px solid transparent;
}

.photo-thumbnail:hover {
    transform: scale(1.05);
    border-color: #3498db;
}

.photo-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    user-select: none;
    -webkit-user-select: none;
}

.lightbox-caption {
    color: white;
    text-align: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    -webkit-user-select: none;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.photo-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    opacity: 0.8;
}

/* Responsive Design */

/* Tablet and below */
@media screen and (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 1.5em;
    }
    
    nav ul {
        gap: 15px;
        padding: 0 10px;
    }
    
    nav a {
        padding: 5px 10px;
        font-size: 0.9em;
    }
    
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .card {
        padding: 15px;
    }
    
    /* Mobile lightbox optimizations */
    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 50px;
        height: 50px;
        font-size: 30px;
        padding: 15px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-content img {
        max-height: 80vh;
    }
    
    .lightbox-caption {
        font-size: 14px;
        padding: 8px;
    }
    
    .photo-counter {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .hours-table td {
        padding: 6px;
        font-size: 0.9em;
    }
    
    .hours-table td:first-child {
        width: 90px;
    }
    
    .photo-thumbnail {
        flex: 0 0 120px;
        height: 120px;
    }
    
    .lightbox-close {
        right: 20px;
        font-size: 35px;
    }
    
    .lightbox-nav {
        font-size: 40px;
        padding: 15px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}

/* Mobile phones */
@media screen and (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    header {
        padding: 15px 0;
        margin-bottom: 20px;
    }
    
    header h1 {
        font-size: 1.3em;
    }
    
    nav {
        padding: 8px 0;
    }
    
    nav ul {
        gap: 10px;
        padding: 0 5px;
    }
    
    nav a {
        padding: 4px 8px;
        font-size: 0.85em;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .card h2 {
        font-size: 1.3em;
    }
    
    .card h3 {
        font-size: 1.1em;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.9em;
        display: block;
        text-align: center;
        margin: 10px 0;
    }
    
    .tags, .categories {
        gap: 8px;
    }
    
    .tag, .category {
        padding: 4px 12px;
        font-size: 0.85em;
    }
    
    .hours-table {
        font-size: 0.85em;
    }
    
    .hours-table td {
        padding: 5px;
    }
    
    .hours-table td:first-child {
        width: 70px;
    }
    
    .info-section {
        margin: 15px 0;
    }
    
    .photo-gallery {
        gap: 8px;
    }
    
    .photo-thumbnail {
        flex: 0 0 100px;
        height: 100px;
    }
    
    .lightbox-content {
        max-width: 95%;
        max-height: 85vh;
    }
    
    .lightbox-image {
        max-height: 85vh;
    }
    
    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
    
    .lightbox-nav {
        font-size: 30px;
        padding: 10px;
    }
    
    .lightbox-prev {
        left: 5px;
    }
    
    .lightbox-next {
        right: 5px;
    }
    
    .photo-counter {
        font-size: 14px;
        padding: 6px 12px;
        top: 10px;
    }
    
    .lightbox-caption {
        font-size: 0.9em;
        padding: 8px;
    }
}

/* Small mobile devices */
@media screen and (max-width: 360px) {
    header h1 {
        font-size: 1.1em;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    
    nav a {
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .photo-thumbnail {
        flex: 0 0 80px;
        height: 80px;
    }
}
