/*
 Theme Name: Zulkus
 Template: avanam
 Version: 1.0
*/

.home-featured-image {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    line-height: 0;
}

.admin-bar .home-featured-image {
    height: calc(100vh - var(--wp-admin--admin-bar--height));
}

.site-branding{
    transition: all 0.3s ease;
    height: 80px;
    display: none;
}

.home .site-branding {
    display: block;
}

#masthead .base-sticky-header.item-is-fixed:not(.item-at-start):not(.site-header-row-container):not(.site-main-header-wrap) .site-branding{
    opacity: 0;
    height: 0;
} 

#masthead, #masthead .base-sticky-header.item-is-fixed:not(.item-at-start):not(.site-header-row-container):not(.site-main-header-wrap), #masthead .base-sticky-header.item-is-fixed:not(.item-at-start) > .site-header-row-container-inner {
	background: transparent !important;
}

.home .site-header-item-navgation-popup-toggle {
	align-items: start!important;
}

.popup-drawer .drawer-inner {
	width: unset !important;
	max-width: unset !important;
	bottom: unset !important;
}

.home-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.scroll-down {
    position: absolute;
    bottom: 20px;
    right: calc(20px + var(--scrollbar-offset));
    z-index: 10;
}

.scroll-down a {
    display: block;
    color: var(--global-palette3) ;
}

.scroll-down a:hover {
    color: var(--global-palette-highlight);
}

.popup-drawer .drawer-content {
	padding: 0 1.5em 1.5em !important;
}

.popup-drawer.active .drawer-overlay {
	cursor: inherit !important;
}

.justified-portfolio:not(.js-enabled) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 20px;
}

.justified-portfolio:not(.js-enabled) .portfolio-item img {
  width: 100%;
  height: auto;
  display: block;
} 

.justified-portfolio {
	margin: 20px;
}

.justified-portfolio article:hover a {
    color: var(--global-palette-highlight);  
}

.jp-row {
  display: flex;
  margin-bottom: 20px;
}

.jp-row .portfolio-item {
  margin: 0;
}

.jp-row img {
  display: block;
  object-fit: cover;
}

.portfolio-thumb {
    height: 400px; 
    overflow: hidden;
    position: relative;
}

.portfolio-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover; 
}

.portfolio-title {
	font-size: 1.3rem;
	margin: 10px 10px 15px;
}

.portfolio-excerpt {
    margin: 0 20px 10px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.single-portfolio article.portfolio {
	width: 100vw;
    min-height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
}

.admin-bar.single-portfolio article.portfolio {
    min-height: calc(100vh - var(--wp-admin--admin-bar--height));
}


.portfolio-content {
    margin: 20px;
}

.portfolio-image img {
	max-height: calc(100vh - 40px);
	max-width: 80vw;
	width: auto;
}

.admin-bar .portfolio-image img {
    max-height: calc(100vh - 40px - var(--wp-admin--admin-bar--height));
}

.single-portfolio nav.post-navigation {
	margin: 0 20px;
	position: absolute;
	width: calc(100% - 40px);
	top: calc(100% - 50px);
	z-index: 9999;
}

.post-navigation .nav-previous::after {
    content: none !important;
}

.portfolio-close-button a {
    color: var(--global-palette3);
}

.portfolio-close-button a:hover {
    color: var(--global-palette-highlight);
}

.portfolio-close-button {
	position: absolute;
	z-index: 999;
	padding: 20px;
}

/* Page Styles */

.page-layout {
	display: flex;
}

.page-content-section  {
	width: 50%;
	padding: 40px;
	display: flex;
	flex-direction: column;
	justify-content: space-evenly;
    min-height: 100vh;
}

.page-featured-image {
	width: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
}

.page-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.contact-page form input,
.contact-page form textarea {
    width: 100%;
    margin: 5px 0;
    background: var(--global-palette7); 
    border: none;
    color: var(--global-palette3);
}

.contact-page form input[type="submit"]:hover {
    background: var(--global-palette-highlight);
}

.contact-page form input[type="submit"] {
    background: var(--global-palette3);
    color: var(--global-palette7);
    transition: background-color 0.3s ease;
    width: 30%;
}

.contact-page form input::placeholder,
.contact-page form textarea::placeholder {
    color: var(--global-palette3);
}

.error {
	text-align: center;
}

@media (orientation: portrait)  {
    .single-portfolio article.portfolio {
    	width: 100vw;
        height: 100vh;
        flex-direction: column;
    }
    .portfolio-image img {
    	max-width: calc(100vw - 40px);
    	max-height: 80vh;
    	height: auto;
    }
    .page-layout {
        flex-direction: column;

    }
    .page-content-section {
	    width: 100%;
        min-height: unset;
    }

    .page-featured-image img {
        height: auto;
        width: auto;
        min-height: 50vh;
        min-width: 100vw;
    }
    .page-featured-image {
	    width: 100%;
	    height: 50vh;
    }   
    .portfolio-content {
    	margin: 20px 70px;
    	text-align: center;
    }
    .contact-page form input[type="submit"] {
        width: 100%;
    }
}
@media screen and (max-width: 600px ) {
    .portfolio-title {
	    font-size: 1rem;
	    margin: 5px 0px 10px;
    }
}