/*
 Theme Name:   Metal Lair
 Theme URI:    https://metallair.net
 Description:  Custom theme for Metal Lair
 Author:       Mike Copestake
 Author URI:   https://plnt.co.uk/
 Template:     generatepress
 Version:      0.2
*/
/* Homepage Layout */
.home .site-content {
    flex-direction: column;
}
/* Full-width hero with background image and foreground content box */

.ml-hero-bg {
    position: relative;
    /* stretch section to viewport width even inside a constrained container */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;

    min-height: 60vh;
    background-size: cover;
    background-position: center 25%;
    background-repeat: no-repeat;

    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    background-color: var(--contrast-3); /* fallback if no image */
}

.ml-hero-overlay {
    position: absolute;
    inset: 0;
    /* subtle dark gradient to help text readability */
    background: linear-gradient(
        120deg,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.35) 40%,
        rgba(0, 0, 0, 0.05) 100%
    );
    pointer-events: none;
}

.ml-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    display: flex;
    justify-content: flex-start;
}

/* Foreground content box */

.ml-hero-content-box {
    max-width: 700px;
    background: rgba(248, 245, 242, 0.96); /* bone with slight transparency */
    padding: 20px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.ml-hero-category {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    color: var(--contrast-2);
}

.ml-hero-title {
    font-size: 20px;
    line-height: 1.15;
    margin: 0;
}

.ml-hero-title a {
    text-decoration: none;
    color: var(--contrast-3);
}

.ml-hero-excerpt {
    margin: 0 0 1.4rem;
    color: var(--contrast-3);
    font-size: 0.98rem;
}

.ml-hero-button {
    display: inline-block;
    padding: 5px 15px;
    border: 1px solid var(--contrast-3);
    background: transparent;
    color: var(--contrast-3);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
}

.ml-hero-button:hover {
    background: var(--contrast-3);
    color: var(--base-2);
}
/* Mobile adjustments */

@media (max-width: 991px) {
    .ml-hero-bg {
        min-height: 70vh;
    }

    .ml-hero-inner {
        padding: 3rem 1.25rem;
        justify-content: center;
    }

    .ml-hero-content-box {
        max-width: 100%;
        padding: 1.5rem 1.6rem;
    }

    .ml-hero-title {
        font-size: 1.7rem;
    }
}

/* Section container becomes a vertical list (not a big grid anymore) */
/* Section wrapper */
.ml-section {
    padding: 2.5rem 1.5rem;
}

.ml-section-title {
    margin: 0 auto 1.75rem;
    font-size: 1.4rem;
}

.ml-section-divider {
    display: flex;
    margin-bottom: 20px;
}
.ml-section-divider-highlight {
    flex-basis: 50px;
    border-bottom: 5px solid var(--contrast-3);
}
.ml-section-divider-line {
    flex-grow: 1;
    border-bottom: 5px solid var(--contrast-2);
}

.ml-section-list {
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    gap: 1.75rem;
    flex-wrap: wrap;
}

/* Card layout: text left, image right */
/* Overlay grid layout */
/* Wrapper: featured on the left, others on the right */
.ml-section-wrap {
    margin: 0 auto;
    display: flex;
    gap: 10px;
    flex-direction: row;
}

.ml-section-featured {
    min-height: 500px;
    display: flex;
    flex-grow: 1;
    flex-basis: 50%;
}

.ml-section-standard {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
    flex-basis: 50%;
}

.homepage-column-sections {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.homepage-column-sections .ml-section .ml-section-wrap {
    flex-direction: column;
}

.homepage-column-sections .ml-section {
    width: calc(50% - 10px);
}

.homepage-column-sections .ml-section .ml-section-featured {
    flex-basis: 100%;
}

.homepage-column-sections .ml-section-wrap .ml-section-standard {
	display: flex;
	flex-basis: 100%;
	flex-wrap: wrap;
}

.homepage-column-sections .ml-section-wrap .ml-section-standard .ml-card--standard {
	min-height: unset;
}

.homepage-column-sections .ml-section .ml-section-title {
    font-size: 2rem;
}
.homepage-column-sections .ml-card {
    flex-basis: calc(50% - 5px);
}

/* Cards */

.ml-card {
    position: relative;
    overflow: hidden;
    min-height: 180px;
    cursor: pointer;
}

.ml-card-link {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 20px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    text-decoration: none;
    color: var(--base-2);
    aspect-ratio: 1 / 1;
    height: 100%;
    width: 100%;
}

/* Dark gradient overlay over image */

.ml-card-link .ml-card-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.55) 65%,
        rgba(0, 0, 0, 0.8) 100%
    );
    pointer-events: none;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.ml-card-link:hover .ml-card-bg-overlay {
    opacity: 0.4;
}

.homepage-column-sections .ml-section-wrap .ml-section-standard .ml-card--standard .ml-card-link {
	aspect-ratio: unset;
	background-image: unset !important;
	padding: 10px;
	align-items: flex-start;
}

.homepage-column-sections .ml-section-wrap .ml-section-standard .ml-card--standard .ml-card-link .ml-card-bg-overlay {
	display: none;
}

.ml-card-inner {
    max-width: 90%;
    z-index: 2;
}

/* Category pill */

.ml-card-category-pill {
    display: inline-block;
    margin-bottom: 0.4rem;
    padding: 0.18rem 0.7rem;
    background: rgba(248, 245, 242, 0.92);
    color: var(--contrast-3);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Title and date */

.ml-card-title {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    line-height: 1.25;
    color: var(--base);
}

.ml-card-meta {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--base);
}

.ml-card-meta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.homepage-column-sections .ml-section-wrap .ml-section-standard .ml-card--standard .ml-card-link .ml-card-meta,
.homepage-column-sections .ml-section-wrap .ml-section-standard .ml-card--standard .ml-card-link .ml-card-title {
 color: var(--contrast-3);
}

/* Featured vs standard sizing */

/* Featured vs standard fine-tuning */

.ml-card--featured {
    min-height: 500px;
    flex-grow: 1;
}

.ml-card--standard {
    min-height: 245px;
}

.ml-card--featured .ml-card-title {
    font-size: 1.4rem;
}

/* Responsive behaviour */

@media (max-width: 1024px) {
    .ml-section-wrap {
        grid-template-columns: 1fr;
    }

    .ml-section-wrap {
        flex-direction: column;
    }

    .ml-section-featured {
        min-height: 260px;
        flex-basis: 100%;
    }
    .ml-card-link {
        aspect-ratio: unset;
    }
}

@media (max-width: 768px) {
    .ml-section-standard {
        grid-auto-rows: minmax(200px, 1fr);
        grid-template-columns: 1fr;
    }

    .ml-card-link {
        aspect-ratio: unset;
        padding: 1.4rem;
    }

    .ml-card-title {
        font-size: 1.1rem;
    }

    .ml-card--featured {
        aspect-ratio: 1 / 1;
        min-height: unset;
    }

    .homepage-column-sections .ml-section {
        width: 100%;
    }
}

/* GeneratePress Site CSS */
/* Box shadow */
.site {
	box-shadow: 0px 0px 20px -10px rgba(0,0,0,0.3);
}
/* Forms and buttons */
.button, .submit {
	border-radius: 3px;
}
/* Sidebar */
@media(min-width: 769px) {
	.sidebar.is-right-sidebar > .inside-right-sidebar {
        position: sticky;
        top: 54px;
    }
}
/* End GeneratePress Site CSS */

/* Logo */
.navigation-branding img {
	height: 90px
}

/* Hide menu */
nav #primary-menu {
	display: none;
}

/* Tweak footer list styling */
footer .footer-categories {
	margin-left: 0;
	column-count: 2;
	list-style: none;

}
.footer-categories ul p {
	margin-bottom: 0;
}

.footer-categories li a:hover {
	color: var(--base-2);
}

footer .metform-form-main-wrapper .e-con-inner {
	flex-direction: column !important;
	row-gap: 10px
}

footer .metform-form-main-wrapper .e-con-inner .elementor-element {
	width: 100%;
	padding: 0;
}

footer .metform-form-main-wrapper .e-con-inner .metform-btn {
	border-radius: 0 !important;
	box-shadow: none;
}

@media (min-width: 1025px) {
    .archive .site-main .ratio-third > .gb-loop-item:first-child {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }
}

.series-archive-wrap .query-looper {
	row-gap: 0;
	column-gap: 20px;
}

.series-archive-wrap .query-looper article:not(:first-child) {
	background-image: unset;
	aspect-ratio: initial;
	min-height: unset;
	border-bottom: 1px solid var(--contrast-3);
	margin-bottom: 0;
}

.series-archive-wrap .query-looper article:not(:first-child) h4 a,
.series-archive-wrap .query-looper article:not(:first-child) p {
	color: var(--contrast-3);
}


.ml-hero-bg .ml-hero-title a {
	font-size: 18px;
}

.ml-hero-content-box {
	background: rgba(248, 245, 242, 0.6);
}

.ml-hero-content-box:hover {
	background: rgba(248, 245, 242, 0.9);
}

.ml-card--featured .ml-card-title {
	font-size: 20px;
}

.ml-card-title {
	font-size: 16px;
}

@media screen and (max-width: 767px) {
	footer .footer-categories {
		column-count: 1;
	}
}