/* Arowant homepage tweaks */

:root {
    background: #FFF;
}

.container.av-logo-container.logo-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.inner_sidebar {
    margin-left: 7px;
}

.container.av-section-cont-open {
    max-width: 1250px;
}

div .logo {
    position: inherit;
}

.logo img, .logo svg {
    max-height: 480px;
    padding-top: 30px;
    padding-bottom: 50px;
    max-width: 100%; /* Ensure the logo doesn't overflow its container */
    height: auto; /* Maintain aspect ratio */
    width: auto; /* Allow the width to adjust based on the height */
    display: block; /* Remove any inline spacing */
    margin: 0 auto; /* Center the logo if it's smaller than its container */
}

/* Media query for screens up to 1280px wide */
@media screen and (max-width: 1280px) {
    .logo img, .logo svg {
        max-height: 400px;
        padding-top: 40px;
        padding-bottom: 40px;
    }
}

/* Media query for screens up to 992px wide */
@media screen and (max-width: 992px) {
    .logo img, .logo svg {
        max-height: 300px;
        padding-top: 30px;
        padding-bottom: 30px;
    }
}

/* Media query for screens up to 768px wide */
@media screen and (max-width: 768px) {
    .logo img, .logo svg {
        padding-top: 2px;
        padding-bottom: 2px;
    }
}

.html_stretched #wrap_all,
.header_color .header_bg {
	background-color:transparent;
}

.html_header_top.html_bottom_nav_header #header_main_alternate .main_menu>div,
.html_header_top.html_bottom_nav_header #header_main_alternate .main_menu ul:first-child {
    width: 100%;
    height: 54px;
}

.html_header_top .av_bottom_nav_header #header_main_alternate .main_menu ul:first-child > li > a {
    height: 55px;
    line-height: 55px;
}

.pcwt_textblock a {
    text-decoration: underline !important;
}

.template-page .entry-content-wrapper h1,
.template-page .entry-content-wrapper h2 {
    letter-spacing: 0;
}


/* Menu changes */

ul#pcwt-menu {
    display: flex;
    flex-direction: row;
    margin: 0;
    padding: 0;
    width: 100%;
}

ul#pcwt-menu li {
    list-style: none;
    flex: 1 1 0;
    text-align: center;
}

ul#pcwt-menu li a {
    display: block;
	color:#FFF;
    width: 100%;
    box-sizing: border-box;
}

ul#pcwt-menu li:first-child 	{background: #79243b;}
ul#pcwt-menu li:nth-child(2) 	{background: #006d34;}
ul#pcwt-menu li:nth-child(3) 	{background: #b55a20;}
ul#pcwt-menu li:nth-child(4) 	{background: #001e42;}
ul#pcwt-menu li:nth-child(5) 	{background: #5d2482;}

.av-fixed-size .av-masonry-entry .av-inner-masonry-content,
.av-caption-on-hover .av-masonry-item-with-image.av-masonry-entry .av-inner-masonry-content,
.av-flex-size.av-caption-on-hover-hide .av-masonry-entry.av-masonry-item-with-image .av-inner-masonry-content {
    position: absolute;
    bottom: -59px;
}

.captions p {
    font-size: 1.4em;
    font-style: italic;
    margin-top: 0;
}

.pcwt-image-container-inner, .pcwt_image, .av-image-caption-overlay {
	border-radius: 0px;
}


/* Widgets */

.widgettitle {letter-spacing: 0}


.widget.dark-blue h3.widgettitle {
    color: #FFF;
    padding: 22px;
	margin: 0;
    font-size: 1.6em;
}

.widget.sep-header h3.widgettitle {
    color: #FFF;
    padding: 22px;
    border-bottom: 20px solid #FFF;
    margin-left: -22px;
    margin-right: -22px;
	font-size: 1.1em
}

.widget.dark-blue {
    background: #001e41;
    color: #FFF;
	padding: 0
}

.widget.dark-blue.sep-header {
    padding: 0 22px 24px;
}

.widget a.calendar-link, .widget_agendas_minutes_widget_upcoming.widget .widget-content a.calendar-link,
.purple a {
    border: 2px solid #FFF;
    display: table;
    padding: 15px 30px 13px;
    min-width: 140px;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #FFF !important;
    margin: 20px auto 0;
}

.widget.btn.light-blue a {
    background: #00669c;
}

.widget.btn a {
    display: block;
    text-align: center;
    padding: 20px;
    font-weight: bold;
    color: #FFF;
    font-size: 1.4em;
}

.document-wid-row strong[itemprop="headline"] {
    color: #FFF;
    margin-top: 20px;
    display: block;
	font-weight: normal
}

.home .widget.purple {
    background: #5d2483;
    margin-top: 40px;
    color: #FFF;
    padding: 22px;
	margin-bottom: 0
}

.widget.purple {
    background: #5d2483;
    margin-top: 22px;
    color: #FFF;
    padding: 22px;
    margin-bottom: 22px;
}

.purple h3.widgettitle {
    text-align: center;
    color: #FFF;
}

.sidebar .widget:first-child.purple {
    padding-top: 22px;
    margin-bottom: 40px;
	margin-top: 0
}

.widget.btn.dark-blue {
	padding: 0;
	margin-bottom: 26px;
}

.widget.btn.dark-blue p {
	margin: 0;
	padding: 0
}

.widget.btn.dark-blue a {
	display: block;
    text-align: center;
    padding: 6px;
    font-weight: bold;
    color: #FFF;
    font-size: 1.2em;
}

/* Calendar */

.tribe-common--breakpoint-medium.tribe-events .tribe-events-l-container {
    min-height: 700px;
    padding-bottom: 0;
    padding-top: 0;
}

@media only screen and (min-width: 992px) {
	.html_stretched #wrap_all {
		margin-top: -20px;
	}
}

@media only screen and (min-width: 768px) {
	.container.av-logo-container {
	    display: none;
	}
}

@media only screen and (max-width: 767px) {
	.custom-header-container {
	/*	display: none; */
	}
    .responsive #top .logo {
        position: static;
        display: table;
        height: 80px !important;
        float: none;
        padding: 0;
        border: none;
        width: 100%;
    }
	.container.av-logo-container.logo-container {
		display: block;
	}
    .responsive .logo img, .responsive .logo svg {
        height: auto !important;
        width: auto;
        max-width: 100%;
        display: block;
        max-height: 240px;
        padding: 20px 0;
        margin: 0 auto;
    }
	.container.av-logo-container .inner-container span.logo.pcwt-standard-logo {
	    display: none !important;
	}
	.content, .sidebar {
	    padding-top: 80px;
	}
	.councillor-info p {
	    word-wrap: break-word;
	}
	.fancybox__content {
		width: 100%
	}
	.art-tr .art-td:nth-child(5) .art-td-first {
	    width: 100% !important;
	}
	.art-tr .art-td:nth-child(5) .art-td-last {
	    display: none !important;
	}
	.art-tr:nth-child(odd) {
	    margin: 0 !important;
	    padding: 0 !important;
	}
	.art-tr:nth-child(even) .art-td .art-td-last {
	    width: 100% !important;
	    background: #FFF;
	}
	.art-tr:nth-child(even) .art-td .art-td-first {
	    display: none !important;
	}
    body .agm.art-table .art-tbody .art-tr {
        margin-bottom: 25px;
    }
    .responsive #top #main .sidebar.smartphones_sidebar_active {
        border-top-width: 0;
        margin: 0;
        padding: 0;
    }
}