/*
Theme Name: Hamlin CCC POW
Theme URI: 
Author: Andy Ballerstein
Author URI: https://brightspacecreative.com
Description: A custom block-based theme for the Hamlin CCC & POW Camp website.
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 5.7
Version: 0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hamlin-ccc-pow
Tags: 
*/

:root {
	--archive-green: #AEF2C5;
	--archive-yellow: #D6C870;
	--archive-grey: #D6DBD5;
	--archive-blue: #A9C7FF;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

footer {
	margin-block-start: 0;
}

.background-offset {
	background-size: contain !important;
	background-repeat: no-repeat;
}

.hero {
	position: absolute;
	width: 100%;
	min-height: 370px;
}

.page-offset {
	margin-top: 220px !important;
}

.offset-callout {
	width: 90%;
	max-width: 860px;
}

.background-offset .offset-callout {
	max-width: 600px;
}

/***Timelines***/

.timeline {
	border-left: 2px solid var(--wp--preset--color--custom-light-yellow);
}

.timeline-entry {
	padding-left: 60px;
}

.timeline-entry::before {
	content: '';
	width: 100px;
	height: 33px;
	position: absolute;
	background-image: url(images/timeline-date-marker.svg);
	background-repeat: no-repeat;	
	left: -16px;
	top: 16px;
}

.timeline-entry:first-of-type::after {
	content: '';
	position: absolute;
	width: 2px;
	height: 15px;
	left: -2px;
	top: 0;
	background-color: #FFF;
}

.timeline-entry:last-of-type::after {
	content: '';
	position: absolute;
	width: 2px;
	height: 100%;
	background-color: #FFF;
	left: -2px;
	top: 47px;
}

.timeline-entry .timeline-date {
	display: inline-block;
	position: absolute;
	z-index: 2;
}

.timeline-entry .timeline-photo {
	padding-top: 30px;
}

.table-of-contents ol {
	padding-left: 1.1rem;
}

.table-of-contents ol li {
	margin-bottom: 1rem;
}

.table-of-contents ol li a {
	text-decoration: none;
}

.table-of-contents ol li::marker {
	font-weight: bold;
}

/***Archive***/

.has-large-margin-start {
	margin-block-start: 2.5rem;
}

.asset-filters {
	display: flex;
	gap: 1rem;
	margin-bottom: 3rem;
	align-items: center;
}

.search-container {
	display: flex;
	padding: 10px;
	gap: 10px;
	border: 2px solid var(--wp--preset--color--custom-dark-green);
	background-color: var(--archive-grey);
}

.search-container svg {
	color: var(--wp--preset--color--custom-dark-green);
}

#asset-search {
	border: none;
	background: none;
	appearance: none;
	outline: none;
	color: var(--wp--preset--color--custom-dark-green);
	font: inherit;
	font-weight: 700;
}

#asset-search::placeholder {
	color: var(--wp--preset--color--custom-dark-green);
}

.asset-filters select {
	appearance: none;
	color: var(--wp--preset--color--custom-dark-green);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 0.75rem center / 12px;
  padding: 0.7rem 2.5rem 0.7rem 0.75rem;
  border: 2px solid var(--wp--preset--color--custom-dark-green);
  font: inherit;
  font-weight: 700;
}

.asset-filters select:focus-visible { 
	outline: 2px solid var(--wp--preset--color--custom-dark-green); 
	outline-offset: 2px; 
}

#asset-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem 1.5rem;	
}

.asset-card {
	position: relative;
}

.asset-card a {
	display: inline-block;
	text-decoration: none;
}

.asset-card .asset-thumbnail {
	max-width: 100%;
	height: auto;
	border: 1px solid #666666;
	box-sizing: border-box;
	margin-bottom: 1rem;
}

.asset-card .asset-meta {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0.75rem;
}

#asset-grid .asset-card .asset-title {
	font-size: 1.125rem;
}

.asset-card .asset-title {
	font-weight: 600;
	line-height: 1.3em;
}

.asset-card .asset-era {
	border-radius: 20px;
	padding: 7px 12px;
}

.asset-card .asset-era.ccc-camp {
	background-color: var(--archive-green);
}

.asset-card .asset-era.excavation {
	background-color: var(--archive-grey);
}

.asset-card .asset-era.pow-camp {
	background-color: var(--archive-blue);
}

.asset-card .asset-era.post-excavation {
	background-color: var(--archive-yellow);
}

.asset-card::after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 44px;
	height: 58px;
} 

.asset-card.document::after {
	background-image: url(images/document-type-icon.svg);
}

.asset-card.photo::after {
	background-image: url(images/photo-type-icon.svg);
}

.asset-card.map::after {
	background-image: url(images/map-type-icon.svg);
}

.wp-element-button.more {
	display: inline-flex;
	align-items: center;
	color: var(--wp--preset--color--black);
	background-color: var(--wp--preset--color--custom-light-yellow);
	font-weight: 700;
	border: 1px solid var(--wp--preset--color--custom-dark-yellow);
	padding: 10px 12px;
}

.wp-element-button.more::after {
	content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat;
  margin-left: 5px;
}

.wp-element-button.back {
	display: inline-flex;
	align-items: center;
	color: var(--wp--preset--color--black);
	background-color: var(--wp--preset--color--custom-light-yellow);
	font-weight: 700;
	border: 1px solid var(--wp--preset--color--custom-dark-yellow);
	padding: 10px 12px;
}

.wp-element-button.back::before {
	content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  mask:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 6 9 12 15 18'/%3E%3C/svg%3E") center / contain no-repeat;
  margin-right: 5px;
}

.page-wrapper {
	padding-top: var(--wp--preset--spacing--80);
	padding-bottom: var(--wp--preset--spacing--80);
}

.section-wrapper {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
}

.meta-container {
	gap: 0.5rem;
	flex-direction: column;
	align-items: flex-start;
}

.meta-container h1,
.meta-container p {
	margin: 0;
}

.meta-item label {
	font-weight: 700;
}

.meta-item abbr {
	margin-right: 2px;
}

.related-assets-container {
	display: flex;
	flex-direction: row;
	gap: 1.5rem;	
	overflow: hidden;
}

.related-assets-container a.asset-card {
	text-decoration: none;
	flex: 0 0 150px;
}

.other-assets-container {
	background-color: var(--archive-grey);
}

.related-assets-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-block-start: 1rem;
}
.related-assets-pagination[hidden] { display: none; }

.related-assets-dot {
  inline-size: 0.625rem;
  block-size: 0.625rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: #666666;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.related-assets-dot[aria-current="true"] {
	background-color: var(--wp--preset--color--custom-dark-green);
  transform: scale(1.25);
}

@media (max-width: 781px) {
  :root {
    --wp--preset--spacing--50: 1.25rem;
    --wp--preset--spacing--60: 1.5rem;
    --wp--preset--spacing--70: 1.75rem;
    --wp--preset--spacing--80: 2rem;
  }

  .hero {
  	min-height: 250px;
  }

  .mobile-reverse {
    flex-direction: column-reverse;
  }
	.timeline-entry {
		padding-left: 35px;
	}  

	.feature-section {
		padding-top: var(--wp--preset--spacing--50) !important;
		padding-bottom: var(--wp--preset--spacing--50) !important;
	}

	.feature-section > .background-offset {
		background-image: none !important;
	}

	.feature-section .offset-callout {
		width: 100%;
	}

	.asset-filters {
		flex-direction: column;
		align-items: stretch;
	}

}

@media (max-width: 1200px) {
	/*.has-global-padding:not(.alignfull):not(main) {
		padding-left: var(--wp--preset--spacing--60);
		padding-right: var(--wp--preset--spacing--60);
	}*/
}