/* 
Theme Name: Michael Bennallack Hart
Theme URI: https://www.mbhart.co.uk/
Author: Freelance-Creator
Author URI: https://www.freelance-creator.com/
Template: astra
Version: 1.0.0
*/

/* Astra Header/Footer Builder CSS */
.ast-mobile-popup-drawer,
.ast-mobile-popup-inner,
.ast-mobile-popup-overlay {
	width: 220px !important;
}

.ast-mobile-popup-overlay {
    display: none !important;
}

.ast-mobile-popup-inner {
	background: #ffffff !important;
}

.home .ast-mobile-popup-inner {
	background: transparent !important;
}

body:not(.ast-theme-transparent-header) .ast-header-social-1-wrap .ast-social-color-type-custom svg {
	fill: #000000;
}

/* Exhibitions List */
.exhibitions-list {
	font-family: inherit;
	max-width: 780px;
	margin: 0;
	padding: 0;
}

.exhibitions-year-group {
	display: block;
	margin-bottom: 0;
}

.exhibitions-items {
	display: block;
}

.exhibitions-item {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0 6px;
	padding: 7px 0;
	border-bottom: 1px solid #e4e4e4;
	font-size: 0.9rem;
	line-height: 1.5;
	color: #1a1a1a;
}

.exhibitions-year {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.07em;
	color: #999;
	text-transform: uppercase;
	flex-shrink: 0;
}

.exh-sep-year {
	color: #ccc;
}

.exh-solo {
	margin-right: 1px;
}

.exh-dot {
	margin: 0 2px;
}

.exh-date {
	color: #888;
	font-size: 0.85rem;
}

.exhibitions-empty {
	font-style: italic;
}

/* Paintings Grid */
.paintings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 0;
    padding: 0;
}

.painting-item {
    break-inside: avoid;
}

.painting-thumb {
    display: block;
}

.painting-thumb img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.painting-thumb:hover img {
    opacity: 0.85;
}

.painting-name {
    margin: 6px 0 0;
    font-size: 0.85rem;
    color: #555;
}

.paintings-empty {
    color: #999;
    font-style: italic;
}

/* Responsive */
@media ( max-width: 900px ) {
    .paintings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media ( max-width: 480px ) {
    .paintings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Single Paintings */
.single-painting .ast-container {
	max-width: 1240px !important;
}

.single-painting .post-thumb-img-content.post-thumb {
	width: 40% !important;
}

@media (max-width: 991px) {
	.single-painting .post-thumb-img-content.post-thumb {
		width: 100% !important;
	}
}

.single-painting .post-thumb-img-content.post-thumb img {
	width: 100% !important;
	height: auto !important;
}

.single-painting .entry-header {
	margin-bottom: 10px;
}