@font-face {
    font-family: "Dirga";
    src: url("./../assets/Dirga/Dirga.woff2") format("woff2"),
    url("./../assets/Dirga/Dirga.woff") format("woff"),
    url("./../assets/Dirga/Dirga.otf") format("opentype"),
    url("./assets/Dirga/Dirga.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

body {
	font-family: "Montserrat", sans-serif;
	font-optical-sizing: auto;
	font-weight: 600;
	font-style: normal;
}

h1, h2, h3, h4, h5, h6, a {
    font-family: "Dirga", sans-serif;
}

.text-montserrat {
	font-family: "Montserrat", sans-serif;
}

.text-dirga {
    font-family: "Dirga" sans-serif;
    font-weight: bold;
}
a {
    text-transform: uppercase;
}

/* === Masonry (no JS) === */
.masonry { column-gap: 1rem; }
.masonry-2 { column-count: 3; }
@media (min-width: 768px) { .masonry-3 { column-count: 3; } }
@media (min-width: 1024px) { .masonry-4 { column-count: 4; } }
.masonry-item { break-inside: avoid; -webkit-column-break-inside: avoid; margin-bottom: 1rem; }

/* Logo tiles keep a neat shape; remove if you prefer natural ratio */
.logo-tile { aspect-ratio: 16/9; }

/* Optional marquee animation for a sponsor/media strip */
.marquee {
    display: flex; gap: 2rem; white-space: nowrap; overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
    display: inline-flex; gap: 2rem; animation: scroll 30s linear infinite;
}
@keyframes scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.stencil { letter-spacing: .06em; font-weight: 800; text-transform: uppercase; }
.tile { border: 1px solid rgba(0,0,0,.06); }

/* Archive links styling */
.wp-archives {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wp-archives li {
    margin-bottom: 0.5rem;
}

.wp-archives a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    text-decoration: none;
    color: #374151;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.wp-archives a:hover {
    background-color: #f3f4f6;
    color: #1f2937;
}

.wp-archives a::after {
    content: attr(title);
    background-color: #e5e7eb;
    color: #6b7280;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Line clamp for recent posts titles */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive category navigation */
@media (max-width: 640px) {
    .category-navigation nav {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .category-navigation nav::-webkit-scrollbar {
        display: none;
    }
    
    .category-navigation .flex-wrap {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
    }
}

/* Ensure category links don't break on small screens */
.category-navigation a {
    flex-shrink: 0;
}

/* Product card uniformity */
.product-card {
    display: flex;
    flex-direction: column;
}

.product-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card .product-actions {
    margin-top: auto;
}

/* Event card uniformity */
.event-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-card .event-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.event-card .event-title {
    min-height: 3rem;
}

.event-card .event-description {
    flex: 1;
}

.event-card .event-button {
    margin-top: auto;
}

/* Line clamp for event descriptions */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Gallery item interactions */
.gallery-item {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.gallery-item img {
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Gallery Modal Improvements */
#gallery-modal {
    display: none !important;
    align-items: center;
    justify-content: center;
}

#gallery-modal.flex {
    display: flex !important;
}

/* Ensure modal container properly centers images */
#gallery-modal > div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Image container improvements */
#gallery-modal .relative {
    padding: 2rem;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

#gallery-modal .flex {
    width: 100%;
    height: 100%;
}

#modal-image {
    width: auto !important;
    height: auto !important;
    max-width: 95vw !important;
    max-height: 95vh !important;
    object-fit: contain !important;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: block;
}

/* Ensure modal content is properly centered */
#gallery-modal > div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Image container improvements */
#gallery-modal .relative {
    padding: 2rem;
    box-sizing: border-box;
}

/* Ensure images are never cut off */
#gallery-modal img {
    box-sizing: border-box;
    margin: auto;
    width: auto !important;
    height: auto !important;
    max-width: 95vw !important;
    max-height: 95vh !important;
    object-fit: contain !important;
    display: block;
}

/* Gallery page specific styles to match homepage */
.page-gallery .gallery-item {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Event Location Map Styles */
#event-location-map {
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.maplibregl-popup-content {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.maplibregl-popup-close-button {
    color: #6b7280;
    font-size: 18px;
    padding: 4px 8px;
}

.maplibregl-popup-close-button:hover {
    color: #374151;
    background-color: #f3f4f6;
    border-radius: 4px;
}

/* Hide OpenStreetMap attribution */
.maplibregl-ctrl-attrib {
    display: none !important;
}

.page-gallery .gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.page-gallery .gallery-item img {
    transition: all 0.3s ease;
}

.page-gallery .gallery-item:hover img {
    transform: scale(1.05);
}

.text-shadow {
    text-shadow:
    1px 1px 1px #ffffff,
    -1px 1px 1px #ffffff,
    -1px -1px 0 #ffffff,
    1px -1px 0 #ffffff;
}

.prose p, .entry-content p, .post-content p, .single-post p {
	margin-bottom: 24px;
}