/*
Theme Name: GeneratePress Child
Template: generatepress
*/

html {
	scrollbar-gutter: stable;
}

body {
	background-color: #e9f1f3 !important;
}

article.bottom-article {
	background-color: #fffff9 !important;
}

.inside-header {
	margin-top: 30px;
	background-color: #1b352c;
}

article.page .inside-article,
article.post .inside-article,
article.catalogue_entry .inside-article {
	background-color: #fffff9;
	border: 6px solid #7b978e !important;
}

article.page .inside-article,
article.post .inside-article {
	margin-top: 30px;
	padding-top: 20px !important;
}

.main-navigation {
	background-color: #e9f1f3 !important;
}

.main-title a  {
	color: #fff;
	font-size: 2.1rem;
}

.main-title a:hover {
	color: #aaa;
}

.site-description {
	color: #fff;
	font-size: 1.1rem;
	margin-top: .8rem;
}

.site-content {
	display: block;
	padding-bottom: 15px;
	background-color: #c4cfcd;
}

#primary.content-area-wrapper {
	margin-left: auto;
	margin-right: auto;
	width: 80% !important;
}

.comments-area {
	background-color: #fffff9 !important;
	border: 6px solid #7b978e;
}

.sidebar {
	margin: 0px 0px 20px 0px;
	border-right: 8px solid #c4cfcd;
}

.sidebar .widget{
	background-color: #fffff9;
	margin: 0px 0px 20px 0px;
}

.sidebar-gift {
	color: #555;
	font-size: 13px;
    font-weight: 600;
    text-align: center;
	padding: 5px 0px 5px 0px !important;
}

aside.widget-gallery {
	border: 6px solid #7b978e !important;
	padding: 25px 0px 10px 0px !important;
}

aside.widget-sidebar {
	padding-top: 30px !important;
}

aside.widget-details {
	padding: 15px 23px 15px 23px !important;
	margin: 0px !important;
}

aside.widget-details h3 {
	font-weight: 600;
	margin-bottom: 8px;
}

aside.widget-details .widget-value {
	font-style: italic !important;
	font-size: 15px;
	margin-bottom: 8px;
}

.catalogue-number {
	float: right;
	margin-bottom: 5px;
	color: #777;
}

.catalogue-entry-shell {
	width: min(1200px, 100%);
	margin: 0 auto;
}

.catalogue-entry-columns {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px !important;
	align-items: start;
	margin: 0px;
}

body.single-catalogue_entry .catalogue-entry-columns {
	margin: 0px 8px 0px 16px;
}

.catalogue-entry-columns #primary,
.catalogue-entry-columns .content-area {
	width: auto !important;
	float: none !important;
	min-width: 0;
}

.catalogue-entry-columns #right-sidebar.widget-area.sidebar.is-right-sidebar {
	width: 340px !important;
	min-width: 340px !important;
	max-width: 340px !important;
	float: none !important;
}

.contact-form-page {
	display: block;
}

.catalogue-top-nav {
	margin: 0px 0px 10px 0px;
	background: rgb(75,75,75);
	color: #fff;
	border-top:5px solid #c4cfcd;
}

.catalogue-top-nav__inner {
	display: grid;
	grid-template-columns: 60px 1fr 60px;
	align-items: center;
	min-height: 54px;
}

.catalogue-top-nav__side {
	display: flex;
	align-items: center;
	height: 100%;
}

.catalogue-top-nav__side--prev {
	justify-content: flex-start;
}

.catalogue-top-nav__side--next {
	justify-content: flex-end;
}

.catalogue-top-nav__center {
	text-align: center;
	padding: 0px;
}

.catalogue-top-nav__title {
	margin: 0;
	font-size: 28px;
	font-style: italic;
	font-weight:600;
	line-height: 1.2;
	color: #fff;
}

.catalogue-top-nav__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 54px;
	background-color: rgb(34,34,34);
	color: #fff;
	text-decoration: none;
	font-size: 24px;
	line-height: 1;
}

.catalogue-top-nav__arrow:hover {
	text-decoration: none;
	background-color: rgb(110, 157, 74);
	color: #000;
}

.catalogue-gallery {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	overflow: visible;
	position: relative;
}

.catalogue-image-zoom {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	overflow: visible;
	position: relative;
	cursor: zoom-in;
	z-index: 1;
}

.catalogue-image-zoom img {
	display: block;
	max-width: 100%;
	height: auto;
	transition: transform 0.2s ease-out;
	transform-origin: right center;
	position: relative;
	z-index: 3;
}

@media (hover: hover) and (pointer: fine) {
  .catalogue-image-zoom:hover img {
    transform: scale(1.9);
    transition: transform 0.4s ease-in 0.7s;
  }
}

.sidebar-collection-location {
	margin: 0px 20px 20px 20px;
}

.sidebar-collection-location h3 {
	margin-bottom: 8px;
}

.gallery-container {
	margin: 0px 4px;
	background-color: #cbdbd6;
	padding: 16px 6px 16px 6px ;
}

.multiple-images {
	padding: 4px 6px 16px 6px ;
}

.gallery-arrow {
	background-color: #000;
	color: #fff;

}

.gallery-arrow:focus {
	background-color: #000;
	color: #fff;
}

.gallery-arrow:active {
    transform: scale(0.97);
}

.gallery-arrow:hover {
	background-color: #596784;
	color: #fff;
}

.gallery-arrow-next {
    height: 32px;
    width: 33%;
    padding-top: 1px;
    display: block;
}

.gallery-arrow-prev { 
	height:32px; 
	width: 33%;
	padding-top: 1px;
    align-self: flex-end;
}

.widget-container {
	display: flex;
	flex-direction: column;
    border: 6px solid #7b978e;
	background-color: #cbdbd6;;
}

.sidebar-button-container {
	display: flex;
	justify-content: center;
	gap: 31%;
	margin-top: 8px;
	margin-bottom: 6px;
	width: 100%;
}

.sidebar-arrow {
	background-color: #000;
	color: #fff;
	padding: 0px;
	width: 33%;
	height: 32px;
}

.sidebar-arrow:focus {
	background-color: #000;
	color: #fff;
}

.sidebar-arrow:active {
    transform: scale(0.97);
}

.sidebar-arrow:hover {
	background-color: #596784;
	color: #fff;
}

.sidebar-artist, #catalogue-gallery-caption {
	margin: 10px 0px;
	font-size: 16px;
	font-style: italic;
	text-align: center;
}

.sidebar-artist {
	margin: 12px 0px;
	font-size: 18px;
	font-weight: 600;
}

.entry-content {
	margin-top: 12px !important;
}

.entry-title {
	font-size: 2.3rem;
	font-weight: 600;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	width: 100%;
}

.entry-title-year {
	white-space: nowrap;
	margin-left: 1rem;
}

body.page .site-main {
	width: 90%;
	margin: 20px auto 20px auto !important;
}

.contact-form-page .site-main {
	width: 80%;
	margin: 20px auto 20px auto !important;
}

article.bottom-article {
	padding: 15px 40px;
	border: 6px solid #7b978e !important;
	background-color: #fff;
	margin: 0px 15px 20px 15px;
}

article.bottom-article h1 {
	display: flex;
	font-size: 1.8rem;
	font-weight: 400;

}

article.bottom-article .entry-content p {
	font-size: 15px;
	font-style: italic;
	margin-bottom: .5em;
}

footer.site-info {
	color: #777;
	background-color: #e9f1f3;
	padding: 10px 0px;
}

footer.site-info .inside-site-info {
	display: block !important;
	width: 100% !important;
	max-width: 1000px;
	margin: 0 auto;
}

footer.site-info .footer-text {
	display: grid !important;
	grid-template-columns: 1fr auto 1fr !important;
	width: 100% !important;
	margin: 0 !important;
	align-items: center;
}

footer.site-info .footer-left {
	justify-self: start;
	margin-left: 4rem;
}

footer.site-info .footer-center {
	justify-self: center;
}

footer.site-info .footer-right {
	justify-self: end;
	text-align: right;
	margin-right: 4rem;
}

@media (max-width: 768px) {

  /* Red box: grid container, centered, fixed width */
  .catalogue-entry-columns {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    gap: 0 !important;

    width: 95% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  /* EVERY direct child of the red box must fill it */
  .catalogue-entry-columns > * {
    max-width: 100% !important;
    min-width: 0 !important;

    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
    position: static !important;

    grid-column: 1 !important;
    box-sizing: border-box !important;
  }

  /* Explicit order: sidebar first, primary second */
  .catalogue-entry-columns > #right-sidebar {
    grid-row: 1 !important;
  }

  .catalogue-entry-columns > #primary {
    grid-row: 2 !important;
  }

  .inside-article {
	margin-bottom: 20px;
	padding: 10px !important;
  }

  article.page .inside-article,
  article.post .inside-article{
	padding: 10px !important;
}

article.bottom-article {
	margin: 0px 10px 20px 10px;
}

  #primary.content-area-wrapper {
	width: 100% !important;
  }

  .contact-form-page .site-main {
	width: 95%;
  }

  .site-info {
	display: none !important;
  }

  .inside-header {
	margin: 0px !important;
  }
}

