/*
 * Plain pages with the grey title band, search results and the list of all dresses (/portfolio-item/).
 * Values measured on the old site (default page, search and archive templates). Loaded by inc/plain-page.php.
 */

/* ---------- Header: white bar with dark menu text (not on pages with the pink band) ---------- */
.dmd-white-bar .dmd-header-bar { background-color: #fff; }
.dmd-white-bar .dmd-header .dmd-nav-item > a { color: var(--dark); }
.dmd-white-bar .dmd-header .dmd-nav-item:hover > a,
.dmd-white-bar .dmd-header .dmd-nav-item.is-here > a { color: var(--pink); } /* item of the page shown (old "current") */

/* ---------- Frame ---------- */
.dmd-plain { background-color: #f9f9f9; }
/* With the title band the content starts below the header bar; the dress list starts under it (as before) */
.dmd-plain-with-title { padding-top: 75px; }
@media (max-width: 1024px) { .dmd-plain-with-title { padding-top: 0; } }
.dmd-narrow .dmd-plain-with-title { padding-top: 0; }

/* ---------- Title band ---------- */
.dmd-plain-title { position: relative; height: 110px; background-color: #eaeaea; }
.dmd-plain-title-holder { display: flex; align-items: center; height: 100%; }
.dmd-plain-title h1 {
	margin: 0;
	padding: 0;
	font-family: Montserrat, sans-serif;
	font-size: 38px;
	line-height: 1.125em;
	font-weight: 700;
	text-transform: uppercase;
	color: #4b4b55;
}
/* Pink band (Terms of Cooperation): same as the title band of a dress page (css/portfolio.css).
   The transparent header bar lies over the image, so the page starts at the top. */
.dmd-plain-pink .dmd-plain-with-title { padding-top: 0; }
.dmd-plain-title.has-image { box-sizing: border-box; background-repeat: no-repeat; background-position: 50% 0; background-size: auto; }
.dmd-plain-title-image { display: none; }
.dmd-plain-title.has-image .dmd-plain-title-holder { align-items: flex-start; padding-top: 83px; box-sizing: border-box; }
.dmd-plain-title.has-image h1 { color: #fff; }
@media (max-width: 1024px) {
	/* The image itself shows (its height follows the width) and the title sits in its middle */
	.dmd-plain-title.has-image { height: auto !important; background-image: none !important; }
	.dmd-plain-title.has-image .dmd-plain-title-image { display: block; }
	.dmd-plain-title.has-image .dmd-plain-title-image img { display: block; width: 100%; height: auto; }
	.dmd-plain-title.has-image .dmd-plain-title-holder { position: absolute; left: 0; top: 0; width: 100%; height: 100%; align-items: center; padding-top: 0; }
}
@media (max-width: 600px) { .dmd-plain-title h1 { font-size: 26px; position: relative; top: .175px; } }
@media (max-width: 480px) { .dmd-plain-title h1 { font-size: 22px; letter-spacing: -2px; position: relative; top: 1.3px; } }

/* ---------- Page content ---------- */
.dmd-plain-content { padding: 30px 0; }
.dmd-plain-content::after { content: ''; display: table; clear: both; }
.dmd-plain-content ol.wp-block-list,
.dmd-plain-content ul.wp-block-list { margin: 15px 0; padding: 0; list-style-position: inside; }
.dmd-plain-content li { margin: 0; padding: 0; }
/* Under-construction notice (Shop), centred over the full grid width */
.dmd-construction { padding: 70px 0 40px; text-align: center; }
.dmd-construction p {
	margin: 0;
	font-family: Montserrat, sans-serif;
	font-size: 24px;
	line-height: 1.4em;
	font-weight: 600;
	color: #4b4b55;
}
@media (max-width: 600px) { .dmd-construction { padding: 50px 0 20px; } .dmd-construction p { font-size: 19px; } }
/* Search: 80 px only when there are hits (old rule on .search-results); without hits 30 px as on pages */
.search-results .dmd-plain-content { padding: 80px 0; }

/* ---------- Lists of entries (search and dress list) ---------- */
.dmd-list-item { margin: 0 0 78px; }
.dmd-list-item:last-child { margin-bottom: 0; }
.dmd-list-image { margin-bottom: 44px; }
.dmd-list-image img { vertical-align: middle; }
.dmd-list-title {
	margin: 0 0 14px;
	font-family: Montserrat, sans-serif;
	font-size: 30px;
	line-height: 1.23333333em;
	font-weight: 700;
	letter-spacing: .5px;
	text-transform: uppercase;
	color: #4b4b55;
}
.dmd-list-title a { color: inherit; transition: color .15s ease-out; }
.dmd-list-title a:hover { color: var(--pink); }
.dmd-list-excerpt { margin: 0 0 19px; }
.dmd-list-text::after { content: ''; display: block; height: 2px; width: 33px; margin-top: 15px; background-color: #c7c7c9; }

/* Search results: title, READ MORE, short line */
.dmd-search-list .dmd-list-item { padding-bottom: 35px; margin-bottom: 40px; }
.dmd-search-list .dmd-list-item:last-child { padding-bottom: 0; margin-bottom: 0; }
.dmd-search-list .dmd-list-title { margin: 20px 0; }
.dmd-search-list .dmd-list-text::after { margin-top: 30px; }
.dmd-btn-large .dmd-btn-text { padding: 17px 59px; }

/* Content of 75 % and a side column of 25 % (dress list, Shop). The old side column held two separator
   widgets with transparent lines: nothing visible, but 48 px high (below the content up to 768 px). */
.dmd-cols::after { content: ''; display: table; clear: both; }
.dmd-col-main { width: 75%; float: left; padding-right: 20px; }
.dmd-col-side { width: 25%; float: left; padding-left: 20px; }
.dmd-sidebar { height: 48px; }

/* Line below the title: date, author, likes, comments on the left, arrow button on the right */
.dmd-list-info { display: table; width: 100%; margin-bottom: 0; }
.dmd-list-info-left,
.dmd-list-info-right { display: table-cell; vertical-align: middle; }
.dmd-list-info-left > div {
	display: inline-block;
	position: relative;
	margin-right: 4px;
	font-family: Montserrat, sans-serif;
	font-size: 13px;
	font-weight: 400;
}
.dmd-list-info-left > div a { color: #81818b; transition: color .15s ease-out; }
.dmd-list-info-left > div a:hover { color: var(--pink); }
.dmd-list-info-left > .dmd-list-like { margin-left: 15px; }
.dmd-list-info-left > .dmd-list-comments { margin-left: 5px; margin-right: 0; }
.dmd-list-info-left i {
	position: relative;
	margin-right: 7px;
	font-family: "dmd-elegant";
	font-size: 18px;
	line-height: 18px;
	font-style: normal;
	color: #a4a4ab;
	transition: color .15s ease-out;
	-webkit-font-smoothing: antialiased;
}
.dmd-list-info-left a:hover i { color: var(--pink); }
.dmd-pi-heart { top: 2px; }
.dmd-pi-heart::before { content: "\e030"; }
.dmd-pi-comment { top: 3px; }
.dmd-pi-comment::before { content: "\76"; }
.dmd-list-info-right { padding-left: 20px; text-align: right; white-space: nowrap; }

/* READ MORE with arrow: the text slides in from the left on hover, the arrow stays and turns pink */
.dmd-tbtn {
	display: inline-block;
	position: relative;
	overflow: hidden;
	padding: 5px 0;
	vertical-align: middle;
	font-family: Montserrat, sans-serif;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.4em;
	letter-spacing: 1px;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--pink);
	transform: translateZ(0); /* own layer as before: same text smoothing */
}
.dmd-tbtn-text {
	display: table-cell;
	vertical-align: middle;
	padding-right: 4px;
	transform: translateX(-100%);
	transition: transform .4s cubic-bezier(.6, 0, .26, .99);
}
.dmd-tbtn:hover .dmd-tbtn-text { transform: translateX(0); }
.dmd-tbtn-icon {
	display: table-cell;
	position: relative;
	vertical-align: middle;
	text-align: center;
	font-size: 27px;
	color: #c7c7c9;
	transition: all .15s ease-out;
}
.dmd-tbtn:hover .dmd-tbtn-icon { color: var(--pink); }
.dmd-tbtn-icon .dmd-pi-arrow { position: relative; vertical-align: middle; font-family: "dmd-elegant"; font-style: normal; font-weight: normal; /* no synthetic bold from the button */ line-height: 1; -webkit-font-smoothing: antialiased; }
.dmd-pi-arrow::before { content: "\24"; }

/* ---------- Page numbers ---------- */
.dmd-pagination { margin-top: 40px; margin-bottom: 80px; }
.search-results .dmd-pagination { margin-bottom: 0; }
.dmd-pagination-inner { display: inline-block; position: relative; width: 100%; vertical-align: middle; text-align: center; }
.dmd-pagination ul { display: inline-block; vertical-align: middle; margin: 0; padding: 0; list-style: none; }
.dmd-pagination li { display: block; float: left; text-align: center; }
.dmd-pagination li a,
.dmd-pagination li.is-active span {
	display: inline-block;
	position: relative;
	box-sizing: content-box;
	vertical-align: middle;
	margin: 0 6px;
	padding: 12px 15px;
	border-bottom: 2px solid transparent;
	font-family: Montserrat, sans-serif;
	font-size: 13px;
	font-weight: 400;
	white-space: nowrap;
	color: #81818b;
	transition: color .15s ease-out, border-color .15s ease-out;
}
.dmd-pagination li a:hover,
.dmd-pagination li.is-active span { border-bottom-color: #c7c7c9; color: #81818b; }
.dmd-pagination li.dmd-pagination-arrow a { padding: 12px; }
.dmd-pagination li.dmd-pagination-arrow a:hover { color: #000; border-bottom-color: transparent; }
.dmd-pagination li.dmd-pagination-arrow span { vertical-align: text-bottom; }
.dmd-pi-chevron-l,
.dmd-pi-chevron-r { font-family: "dmd-lnr"; font-style: normal; font-weight: normal; line-height: 1; -webkit-font-smoothing: antialiased; }
.dmd-pi-chevron-l::before { content: "\e875"; }
.dmd-pi-chevron-r::before { content: "\e876"; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) { .dmd-list-info-left > .dmd-list-like { margin-left: 10px; } }
@media (max-width: 768px) {
	.dmd-col-main, .dmd-col-side { width: 100%; padding: 0; }
}
@media (max-width: 480px) {
	.dmd-list-info-left, .dmd-list-info-right { display: block; text-align: left; padding: 0; }
	.dmd-list-info-right { text-align: right; }
	.dmd-list-info-left > .dmd-list-like { margin-left: 5px; }
}
