/* General Page Styling */
body {
    background: linear-gradient(to bottom, #1e1e1e, #333333);
    color: white;
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
}

/* Header Styling */
header {
    background: url('header-texture.png') repeat;
    padding: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 3px 3px 5px #000;
    border-bottom: 4px solid #aaa;
}

/* Logo Styling */
.logo {
    width: 200px; /* Reduced size */
    height: auto;
    display: block;
    margin: 20px auto;
    padding: 10px;
}

/* Featured Card Section */
#featured-card {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.2);
    width: 80%;
    max-width: 600px;
}

#featured-card .card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

#featured-card .card img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 300px; /* Reduced size */
    object-fit: contain;
    border: 3px solid #ccc;
    border-radius: 8px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.5);
}

#featured-card p {
    text-align: center;
    padding: 5px;
    font-size: 1rem;
    max-width: 90%;
    margin: auto;
    white-space: normal;
} 

/* Card Grid Layout - Adjusted for Vertical & Horizontal Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px;
    max-width: 900px;
    margin: auto;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3 / 4; /* Ensures uniform size and border wrap */
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.card:hover {
    transform: scale(1.05);
    box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.4);
}

/* Lightbox Effect for Click-to-Expand */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.lightbox.active {
    display: flex;
}
