/* 
Theme Name: Fehérvári Tekla 2025
Description: Fehérvári Tekla
Theme Author: Fehérvári Tekla
Template: generatepress
Version: 0.1
Text Domain: generatepress-child 

*/

/*--------------------------------------------------------------
Global Layout
--------------------------------------------------------------*/
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


/*--------------------------------------------------------------
Structural Layout
--------------------------------------------------------------*/
.site-header {
    flex-shrink: 0; /* Header stays at the top */
}

.site {
    flex: 1 0 auto; /* Wrapper grows if content is short */
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1 0 auto; /* Main content expands */
}

.site-footer {
    flex-shrink: 0; /* Footer stays at bottom */
}

.container.grid-container {
    width: 100%;
}


/*--------------------------------------------------------------
Branding (Logo, Title, Links)
--------------------------------------------------------------*/
.site-branding {
    display: flex;
    align-items: center; /* Vertical alignment */
}

/* Branding link */
.branding-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.branding-link:hover {
    cursor: pointer;
}

/* Logo */
.branding-logo {
    width: 72px;
    height: 72px;
    margin-right: 24px;
    flex-shrink: 0;
    object-fit: contain;
}

/* Logo title */
.site-branding a {
    text-decoration: none; /* removes underline */
}

.site-branding a:hover {
    cursor: pointer;
}

/* Main title */
.main-title {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 400;
}

/* Header navigation + title styling */
.main-navigation a,
.main-title {
    text-transform: uppercase;
    font-size: 16px;
}


/*--------------------------------------------------------------
Header Spacing
--------------------------------------------------------------*/
@media (max-width: 768px) {
    .branding-logo {
        width: 48px;
        height: 48px;
        margin-right: 16px;
    }
}

@media (min-width: 769px) {
    .inside-header {
        padding: 40px;
    }
}


/*--------------------------------------------------------------
Custom Post Grid Layout
--------------------------------------------------------------*/
.custom-post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Desktop: 3 columns */
    gap: 2rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

/* Tablet: 2 columns */
@media (max-width: 941px) {
    .custom-post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 1 column */
@media (max-width: 621px) {
    .custom-post-grid {
        grid-template-columns: 1fr;
    }
}


/*--------------------------------------------------------------
Portfolio grid
--------------------------------------------------------------*/
.custom-post-grid article {
    display: flex;
    flex-direction: column;
    text-align: center;
}

/* Featured image */
.custom-post-grid article img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.custom-post-grid article img:hover {
    cursor: pointer;
}

/* Titles inside grid */
.custom-post-grid article h2.entry-title {
    margin-top: 1rem;
    font-size: 1rem;
}

/* Inside article featured image */
.inside-article .post-image a img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}

/* Mobile: 1 column featured image */
@media (max-width: 621px) {
    .inside-article .post-image a img {
    	aspect-ratio: 4 / 5;
    }
}

/*--------------------------------------------------------------
Single pages
--------------------------------------------------------------*/

/* Page titles */
.inside-article h1.entry-title {
    font-size: 1rem;
	font-weight: 500;
}

/* Blockquote paragraph */
.inside-article .entry-content blockquote {
    border-left: none; 
    padding: 0;
    font-size: 15px;
    font-style: normal;
    margin: 0 0 1.5em;
    position: relative;
    font-weight: 300;
}

article.type-post .entry-content {
    margin-top: 0
}

.inside-article .entry-content b,
.inside-article .entry-content strong {
    font-weight: 500
}


/*--------------------------------------------------------------
Footer
--------------------------------------------------------------*/
.inside-site-info {
    padding: 40px;
}

.inside-site-info .copyright-bar {
    font-size: 12px;
}


/*--------------------------------------------------------------
Plugin Overrides / Fixes
--------------------------------------------------------------*/
.pgcsimplygalleryblock-masonry-item 
.pgcsimplygalleryblock-masonry-item-inner:focus,
.pgcsimplygalleryblock-grid-item
.pgcsimplygalleryblock-grid-item-inner:focus {
    box-shadow: none !important;
}


