/**
 * plugins/themes/digitopub/styles/digitopub-issue-layout.css
 *
 * Phase 4 layout override for the Current Issue page.
 *
 * This file is loaded directly by templates/frontend/pages/issue.tpl so the
 * new full-width layout takes effect immediately while the dynamically
 * compiled theme stylesheet cache refreshes.
 */

/* Stretch the OJS page structure to full width on issue pages */
.pkp_page_issue.pkp_op_current .pkp_structure_content,
.pkp_page_issue.pkp_op_view .pkp_structure_content,
.pkp_page_issue.pkp_op_archive .pkp_structure_content,
.pkp_page_issue.pkp_op_current .pkp_structure_footer,
.pkp_page_issue.pkp_op_view .pkp_structure_footer,
.pkp_page_issue.pkp_op_archive .pkp_structure_footer {
	width: 100%;
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

.pkp_page_issue.pkp_op_current .pkp_structure_main,
.pkp_page_issue.pkp_op_view .pkp_structure_main,
.pkp_page_issue.pkp_op_archive .pkp_structure_main {
	float: none;
	width: 100%;
	max-width: none;
	padding: 0;
	margin: 0;
}

.pkp_page_issue.pkp_op_current .pkp_structure_main:before,
.pkp_page_issue.pkp_op_view .pkp_structure_main:before,
.pkp_page_issue.pkp_op_archive .pkp_structure_main:before,
.pkp_page_issue.pkp_op_current .pkp_structure_main:after,
.pkp_page_issue.pkp_op_view .pkp_structure_main:after,
.pkp_page_issue.pkp_op_archive .pkp_structure_main:after {
	display: none;
}

/* Constrain issue page content to a spacious, modern width */
.digitopub-issue-page .digitopub-container {
	width: 92%;
	max-width: 1700px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
	box-sizing: border-box;
}

/* Align breadcrumbs with the page container */
.pkp_page_issue .cmp_breadcrumbs {
	width: 92%;
	max-width: 1700px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
	box-sizing: border-box;
}

/* Align footer with the page container on issue pages */
.pkp_page_issue .digitopub-footer__inner {
	max-width: 1700px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
	.digitopub-issue-page .digitopub-container,
	.pkp_page_issue .cmp_breadcrumbs {
		padding-left: 1.25rem;
		padding-right: 1.25rem;
	}
}

@media (max-width: 767px) {
	.digitopub-issue-page .digitopub-container,
	.pkp_page_issue .cmp_breadcrumbs {
		width: 100%;
		padding-left: 1rem;
		padding-right: 1rem;
	}
}
