/*
Theme Name: Pixelpost Photography
Theme URI: https://example.com/
Description: Minimalist photography child theme for GeneratePress, inspired by the original Pixelpost philosophy.
Author: Gary
Author URI: https://example.com/
Template: generatepress
Version: 1.0.0
Text Domain: pixelpost-photography
*/

/* ==========================================================
   PIXELPOST PHOTOGRAPHY
   ==========================================================

   Design philosophy:

   One photograph.
   Minimal text.
   Generous space.
   No visual clutter.

   GeneratePress remains the parent theme.
   ========================================================== */


/* ==========================================================
   1. GLOBAL
   ========================================================== */

html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    background: #ffffff;
    color: #222222;
}


/* ==========================================================
   2. SITE CONTAINER
   ========================================================== */

/*
 * The photograph should have room to breathe.
 * This is intentionally narrower than a typical blog layout.
 */

.site-grid-container {
    max-width: 1400px;
}


/* ==========================================================
   3. HEADER
   ========================================================== */

.site-header {
    background: #ffffff;
    border-bottom: 0;
}

.site-branding {
    padding-top: 30px;
    padding-bottom: 20px;
}

.site-logo {
    max-width: 100%;
}

.site-title {
    margin: 0;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.site-description {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 400;
    color: #777777;
}


/* ==========================================================
   4. PRIMARY NAVIGATION
   ========================================================== */

.main-navigation {
    background: #ffffff;
}

.main-navigation .main-nav ul li a {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.main-navigation .main-nav ul li:first-child a {
    padding-left: 0;
}

.main-navigation .main-nav ul li:last-child a {
    padding-right: 0;
}



/* ==========================================================
   5. CONTENT AREA
   ========================================================== */

.site-content {
    padding-top: 50px;
    padding-bottom: 60px;
}

.content-area {
    width: 100%;
}


/* ==========================================================
   6. REMOVE SIDEBAR
   ========================================================== */

/*
 * The functions.php file also removes the sidebar.
 * These rules provide additional protection against
 * unwanted sidebar spacing.
 */

.no-sidebar .content-area {
    width: 100%;
}

.no-sidebar .site-content {
    width: 100%;
}


/* ==========================================================
   7. SINGLE PHOTOGRAPH
   ========================================================== */

.single-post .site-content {
    padding-top: 30px;
}

.single-post .inside-article {
    padding: 0;
}

.single-post .entry-header {
    margin-bottom: 25px;
}

.single-post .entry-title {
    margin: 0;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
}


/*
 * The photograph itself is the primary object on the page.
 */

.single-post .entry-content {
    margin: 0;
}

.single-post .entry-content > p:first-child {
    margin-top: 0;
}


/* ==========================================================
   8. PHOTOGRAPH IMAGES
   ========================================================== */

.single-post .entry-content img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}


/*
 * WordPress alignment classes.
 */

.single-post .entry-content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.single-post .entry-content .alignleft {
    margin-right: 30px;
    margin-bottom: 20px;
}

.single-post .entry-content .alignright {
    margin-left: 30px;
    margin-bottom: 20px;
}


/* ==========================================================
   9. CAPTIONS
   ========================================================== */

.wp-caption {
    max-width: 100%;
}

.wp-caption-text,
.wp-element-caption {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #777777;
    text-align: left;
}


/* ==========================================================
   10. PHOTO INFORMATION
   ========================================================== */

.entry-meta {
    font-size: 12px;
    line-height: 1.5;
    color: #777777;
}

.entry-meta a {
    color: inherit;
}

.entry-meta .posted-on,
.entry-meta .byline {
    display: inline;
}

.entry-meta .byline {
    margin-left: 10px;
}


/* ==========================================================
   11. HIDE AUTHOR
   ========================================================== */

/*
 * For a personal photography journal the photograph,
 * rather than the author box, is the focus.
 */

.byline {
    display: none;
}


/* ==========================================================
   12. POST FOOTER
   ========================================================== */

.single-post .entry-footer {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #eeeeee;
    font-size: 12px;
}


/* ==========================================================
   13. PREVIOUS / NEXT PHOTOGRAPH NAVIGATION
   ========================================================== */

.post-navigation {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eeeeee;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    width: 50%;
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation a {
    font-size: 13px;
    font-weight: 400;
}

.post-navigation .prev,
.post-navigation .next {
    font-size: 11px;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}


/* ==========================================================
   14. ARCHIVE / BLOG PAGE
   ========================================================== */

.blog .inside-article,
.archive .inside-article {
    padding-left: 0;
    padding-right: 0;
}

.blog .entry-header,
.archive .entry-header {
    margin-bottom: 20px;
}

.blog .entry-title,
.archive .entry-title {
    font-size: 18px;
    font-weight: 400;
}


/*
 * Keep archive excerpts quiet.
 */

.blog .entry-summary,
.archive .entry-summary {
    font-size: 14px;
    line-height: 1.6;
    color: #666666;
}


/* ==========================================================
   15. ARCHIVE PHOTOGRAPHS
   ========================================================== */

.blog .post-image img,
.archive .post-image img {
    display: block;
    width: 100%;
    height: auto;
}


/* ==========================================================
   16. SEARCH
   ========================================================== */

.search .entry-title {
    font-size: 18px;
    font-weight: 400;
}


/* ==========================================================
   17. PAGINATION
   ========================================================== */

.paging-navigation {
    margin-top: 50px;
    border-top: 1px solid #eeeeee;
    padding-top: 20px;
}

.paging-navigation a,
.paging-navigation span {
    font-size: 13px;
}


/* ==========================================================
   18. FOOTER
   ========================================================== */

.site-footer {
    background: #ffffff;
    color: #777777;
    border-top: 1px solid #eeeeee;
}

.site-info {
    padding-top: 25px;
    padding-bottom: 25px;
    font-size: 12px;
}

.site-info a {
    color: inherit;
}


/* ==========================================================
   19. LINKS
   ========================================================== */

a {
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}


/* ==========================================================
   20. WORDPRESS BLOCKS
   ========================================================== */

.wp-block-image {
    margin-bottom: 25px;
}

.wp-block-gallery {
    margin-bottom: 25px;
}


/*
 * We are deliberately NOT turning galleries into a special
 * design yet. The primary presentation remains one photograph.
 */


/* ==========================================================
   21. RESPONSIVE
   ========================================================== */

@media (max-width: 768px) {

    .site-content {
        padding-top: 30px;
        padding-bottom: 40px;
    }

    .site-branding {
        padding-top: 20px;
        padding-bottom: 15px;
    }

    .site-title {
        font-size: 21px;
    }

    .main-navigation .main-nav ul li a {
        padding-left: 8px;
        padding-right: 8px;
    }

    .single-post .entry-title {
        font-size: 19px;
    }

    .post-navigation .nav-previous,
    .post-navigation .nav-next {
        width: 100%;
        text-align: left;
    }

    .post-navigation .nav-next {
        margin-top: 15px;
        text-align: left;
    }

    .single-post .entry-content .alignleft,
    .single-post .entry-content .alignright {
        float: none;
        margin-left: auto;
        margin-right: auto;
    }

}


/* ==========================================================
   22. VERY SMALL SCREENS
   ========================================================== */

@media (max-width: 480px) {

    .site-content {
        padding-top: 20px;
    }

    .site-title {
        font-size: 19px;
    }

    .single-post .entry-title {
        font-size: 18px;
    }

}



/* ==========================================================
   PIXELPOST SINGLE-PHOTOGRAPH TEMPLATE
   ========================================================== */

.pixelpost-single {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.pixelpost-photo {
    width: 100%;
    margin: 0;
}


/* ----------------------------------------------------------
   Photograph
   ---------------------------------------------------------- */

.pixelpost-photo-image {
    margin: 0;
    padding: 0;
    text-align: center;
}

.pixelpost-photo-image img.pixelpost-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}


/* ----------------------------------------------------------
   Title and date
   ---------------------------------------------------------- */

.pixelpost-photo-header {
    max-width: 900px;
    margin: 24px auto 0;
    padding: 0 20px;
}

.pixelpost-photo-title {
    margin: 0;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.35;
    text-align: center;
}

.pixelpost-photo-date {
    margin-top: 7px;
    color: #888;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}


/* ----------------------------------------------------------
   Optional post content
   ---------------------------------------------------------- */

.pixelpost-photo-content {
    max-width: 700px;
    margin: 30px auto 0;
    padding: 0 20px;
    color: #555;
    font-size: 14px;
    line-height: 1.7;
}

.pixelpost-photo-content p:last-child {
    margin-bottom: 0;
}


/* ----------------------------------------------------------
   Navigation
   ---------------------------------------------------------- */

.pixelpost-photo-navigation {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    max-width: 900px;
    margin: 50px auto 0;
    padding: 20px;

    border-top: 1px solid #eeeeee;

    font-size: 12px;
}

.pixelpost-previous {
    text-align: left;
}

.pixelpost-home {
    text-align: center;
}

.pixelpost-next {
    text-align: right;
}

.pixelpost-photo-navigation a {
    color: #555;
}

.pixelpost-photo-navigation a:hover,
.pixelpost-photo-navigation a:focus {
    color: #000;
}


/* ----------------------------------------------------------
   Mobile
   ---------------------------------------------------------- */

@media (max-width: 768px) {

    .pixelpost-photo-image img.pixelpost-image {
        width: 100%;
        max-width: 100%;
    }

    .pixelpost-photo-header {
        margin-top: 18px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .pixelpost-photo-title {
        font-size: 18px;
    }

    .pixelpost-photo-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    .pixelpost-photo-navigation {
        padding-left: 15px;
        padding-right: 15px;
    }

}


/* ----------------------------------------------------------
   Small phones
   ---------------------------------------------------------- */

@media (max-width: 480px) {

    .pixelpost-photo-navigation {
        grid-template-columns: 1fr 1fr;
        row-gap: 15px;
    }

    .pixelpost-home {
        display: none;
    }

    .pixelpost-previous {
        text-align: left;
    }

    .pixelpost-next {
        text-align: right;
    }

}


/*
 * ---------------------------------------------------------
 * PHOTO EXIF
 * Photos category only
 * ---------------------------------------------------------
 */

.category-photos .pixelpost-exif {
	margin: 10px auto 24px;
	padding: 0;
	text-align: center;

	font-size: 13px;
	font-weight: 400;
	line-height: 1.6;

	color: #777;
}

.category-photos .pixelpost-exif span {
	display: inline-block;
	margin: 0 6px;
	white-space: nowrap;
}

/*
 * Add subtle separators between EXIF items.
 */
.category-photos .pixelpost-exif span + span::before {
	content: "•";
	display: inline-block;
	margin-right: 12px;
	color: #aaa;
}

/*
 * Keep EXIF compact on phones.
 */
@media (max-width: 600px) {

	.category-photos .pixelpost-exif {
		font-size: 12px;
		line-height: 1.8;
		margin-top: 8px;
		margin-bottom: 20px;
	}

	.category-photos .pixelpost-exif span {
		margin: 0 4px;
	}

	.category-photos .pixelpost-exif span + span::before {
		margin-right: 8px;
	}
}


/* =========================================================
   PIXELPOST PHOTO GALLERY
   ========================================================= */

/*
 * Main gallery container
 */
.pixelpost-gallery {
	width: 100%;
	max-width: 1600px;
	margin: 0 auto;
	padding: 30px 30px 60px;
	box-sizing: border-box;
}


/*
 * Gallery heading
 */
.pixelpost-gallery-header {
	text-align: center;
	margin: 0 0 35px;
}

.pixelpost-gallery-title {
	margin: 0;
	font-size: 24px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0.04em;
}


/*
 * Gallery grid
 *
 * Four photographs across on larger screens.
 */
.pixelpost-gallery-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	width: 100%;
}


/*
 * Individual gallery item
 */
.pixelpost-gallery-item {
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
}


/*
 * Photograph link
 */
.pixelpost-gallery-link {
	display: block;
	width: 100%;
	overflow: hidden;
	text-decoration: none;
}


/*
 * Gallery photograph
 *
 * aspect-ratio creates consistently sized gallery cells.
 * object-fit: cover allows horizontal and vertical photographs
 * to coexist cleanly in the same grid.
 *
 * This does NOT alter or crop the original photograph.
 * It only affects its appearance in the Gallery.
 */
.pixelpost-gallery-image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	margin: 0;
	padding: 0;
	transition: opacity 0.2s ease;
}


/*
 * Very subtle indication that a photograph is clickable.
 */
.pixelpost-gallery-link:hover .pixelpost-gallery-image {
	opacity: 0.85;
}


/*
 * Keyboard accessibility
 */
.pixelpost-gallery-link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}


/*
 * Empty gallery message
 */
.pixelpost-gallery-empty {
	text-align: center;
	margin: 50px 0;
	color: #777;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

	.pixelpost-gallery {
		padding-left: 20px;
		padding-right: 20px;
	}

	.pixelpost-gallery-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 15px;
	}

}


/* =========================================================
   SMALL TABLET
   ========================================================= */

@media (max-width: 768px) {

	.pixelpost-gallery-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

}


/* =========================================================
   PHONE
   ========================================================= */

@media (max-width: 480px) {

	.pixelpost-gallery {
		padding: 20px 12px 40px;
	}

	.pixelpost-gallery-header {
		margin-bottom: 25px;
	}

	.pixelpost-gallery-title {
		font-size: 21px;
	}

	.pixelpost-gallery-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

}

/* ==========================================================
   CURRENT PIXELPOST PREVIOUS / NEXT NAVIGATION
   ========================================================== */

.pixelpost-post-navigation {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: start;

	width: 100%;
	max-width: 900px;

	margin: 50px auto 0;
	padding: 20px;

	border-top: 1px solid #eeeeee;
}


/* Previous post — left */

.pixelpost-nav-previous {
	text-align: left;
}


/* Next post — right */

.pixelpost-nav-next {
	text-align: right;
}


/* Navigation links */

.pixelpost-post-navigation a {
	display: inline-block;
	color: #555555;
	text-decoration: none;
}


/* Previous / Next label */

.pixelpost-post-navigation .nav-label {
	display: block;

	font-size: 12px;
	font-weight: 400;
	line-height: 1.5;

	color: #888888;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}


/* Photograph/post title */

.pixelpost-post-navigation .nav-title {
	display: block;
	margin-top: 4px;

	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;

	color: #555555;
}


/* Hover */

.pixelpost-post-navigation a:hover .nav-label,
.pixelpost-post-navigation a:hover .nav-title,
.pixelpost-post-navigation a:focus .nav-label,
.pixelpost-post-navigation a:focus .nav-title {
	color: #000000;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 600px) {

	.pixelpost-post-navigation {
		grid-template-columns: 1fr 1fr;
		margin-top: 40px;
		padding: 18px 15px;
	}

	.pixelpost-nav-previous {
		text-align: left;
		padding-right: 10px;
	}

	.pixelpost-nav-next {
		text-align: right;
		padding-left: 10px;
	}

	.pixelpost-post-navigation .nav-title {
		font-size: 12px;
	}

}