/* public/assets/css/gallery.css */

body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    color: #333;
}

header {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
    margin: 0 0 10px;
}

.type {
    font-size: 1.1em;
    color: #555;
}

.description {
    max-width: 800px;
    margin: 20px auto;
    line-height: 1.6;
}

.gallery-grid, .photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 30px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-card {
    text-decoration: none;
    color: inherit;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.gallery-card:hover {
    transform: translateY(-5px);
}

.gallery-card img, .no-cover {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.no-cover {
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 1.2em;
}

.info {
    padding: 15px;
}

.gallery-card h3 {
    margin: 0 0 8px;
    font-size: 1.3em;
}

.desc {
    color: #666;
    font-size: 0.95em;
    margin: 0;
}

.photo-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 4px;
    transition: opacity 0.3s;
}

.photo-item img:hover {
    opacity: 0.9;
}

.back-link {
    display: inline-block;
    margin: 20px 0;
    color: #007bff;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 20px;
    background: #333;
    color: white;
    margin-top: 40px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    overflow: auto;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
}