
/* ----------------------------------------------------------------------
   Global Styles & Variables (Consistent with Blog)
---------------------------------------------------------------------- */
:root {
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --navy: #1a237e;
    --copper: #b87333;
    --blush: #fdeff2;
    --dark-text: #333333;
    --light-text: #666666;
}

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

body {
    font-family: var(--font-body);
    color: var(--dark-text);
    line-height: 1.7;
    background-color: #ffffff;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--navy);
    margin-bottom: 0.75em;
}

a {
    color: var(--copper);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--navy);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ----------------------------------------------------------------------
   Layout & Header/Footer
---------------------------------------------------------------------- */
.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.site-header, .site-footer {
    padding: 20px;
    text-align: center;
}

.site-header {
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
}
.site-footer {
    margin-top: 60px;
    background-color: var(--blush);
}

/* ----------------------------------------------------------------------
   Main Gallery Page (index.php)
---------------------------------------------------------------------- */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.8rem;
}

.gallery-filters {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-filters a {
    margin: 0 15px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.gallery-filters a.active,
.gallery-filters a:hover {
    background-color: var(--copper);
    color: #fff;
}

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

.gallery-card {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
}

.gallery-thumbnail {
    position: relative;
    cursor: pointer;
}

.gallery-thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Video thumbnail play icon */
.gallery-thumbnail .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 70px;
    padding-left: 5px; /* Optical adjustment for triangle */
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.gallery-card:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: rgba(0,0,0,0.5);
}

.gallery-card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    padding: 40px 20px 20px;
    color: #fff;
}

.gallery-card-title h3 {
    color: #fff;
    font-size: 1.2rem;
    margin: 0;
}

/* ----------------------------------------------------------------------
   Single Item Page (item.php)
---------------------------------------------------------------------- */
.single-gallery-item {
    max-width: 900px;
    margin: 40px auto;
}

.single-gallery-item h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.item-media img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Responsive YouTube Embed */
.video-responsive-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
}

.video-responsive-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.item-description {
    margin-top: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.item-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
