@media screen {
	div.nav-toggle {
		float: right;
		margin: 0;
		display: none;
	}
}

@media screen and (min-width: 1615px) {
.header .slider .imgslide .text-wrap {
	position: absolute;
	padding: 42px;
	background: #fff;
	right: 15%;
    top: 40%;
	bottom:initial;
	width: 500px;
	text-decoration: none;
	color: #000;
}
}
@media screen and (max-height: 780px) {
	.header .slider .imgslide a {bottom: 42%;}
	.header .slider div.imgslide header {bottom: 52%;}
    
}

@media screen and (max-height: 600px) {
	.header .slider .imgslide a {bottom: 54%;}
	.header .slider div.imgslide header {bottom: 60%;}
}

@media screen and (max-height: 500px) {
	.header .slider .imgslide a {bottom: 67%;}
	.header .slider div.imgslide header {bottom: 67%;}
}
@media screen and (max-width: 1605px) {

	.header > .slider {
		padding: 0 !important;
	}
	.header .slider {
		height: auto;
	}
}
@media screen and (max-width: 1516px) {
    
    .flex-direction-nav a:link, .flex-direction-nav a{
        top:55%;
    }
    .himgwrap.ce-layout-0 .bgimgwrap {
		background-repeat: no-repeat;
		background-position: top;
		background-size: inherit;
		height: 500px;
		text-align: center;
		background-attachment: initial;
	}
    
}

@media screen and (max-width: 1400px) {
    .imgslide header h1, .ctype-image.layout-1 header h1 {
    font-size:50px;
    line-height:53px; 
}
   
}
@media screen and (max-width: 1370px) {
	.header .slider .imgslide .text-wrap {
		top: initial;
		bottom:50px;
		
	}
}


@media screen and (max-width: 1184px) {
	.container.layout-3 .ce-textpic.ce-right.ce-intext .ce-gallery {
		width: 50%;
	}
}

@media screen and (max-width: 1180px) {
	.ctype-container.layout-4 .container {
		padding: 0;
	}
	
	.tbl .tcell.col1 {
		display: block;
		float: left;
		width: 50%;
		margin-bottom: 20px;
		border-right: 10px solid transparent;
	}
	.tbl .tcell.col2 {
		display: block;
		float: left;
		width: 50%;
		margin-bottom: 20px;
		border-left: 10px solid transparent;
	}
	.tbl .tcell.col3 {
		display: block;
		float: left;
		width: 50%;
		margin-bottom: 20px;
		border-right: 10px solid transparent;
	}
	
	div.nav-toggle {
		display: inline-block;
		padding: 30px 10px 10px;
		vertical-align: top;
		width: 28px;
		height: 28px;
		box-sizing: content-box;
	}
	
	div.nav-toggle a i {
		font-size: 32px;
		color: #000;
	}
	
	.header .navwrap .mainnav {
		float: none;
		display: none;
	}
	
	.header .navwrap .mainnav.open {
		display: block;
	}

	.pwrap .header .mainnav ul.sub-2.dropdown {
		top: inherit;
	}

	.pwrap .header .mainnav.open ul.sub-2.dropdown {
		top: inherit;
	}
	
	.header .navwrap .mainnav ul li {
		display: block;
		padding: 2px 0;
	}

	.header .navwrap .mainnav ul li ul {
		position: relative;
		display: block;
		top: 0;
		padding-left: 30px;
	}

	.sub-2 {
		display: block;
	}
	
	.header .navwrap .mainnav ul,
	.header .navwrap .mainnav ul li ul {
		padding-left: 10px;
		background: transparent;
		display: block;
		box-shadow: none;
		margin: 0;
		margin-bottom: 30px;
	}

	.header .navwrap .mainnav li {margin: 0;}
	.header .mainnav ul.sub-2 {
		left: 0;
		padding-bottom: 0;
	}

	.header .navwrap .mainnav > ul > li:after {
		width: 216px;
		display: block;
		border-bottom: 1px solid black;
		content: '';
		position: absolute;
		top: 41px;
	}

	.header .navwrap .mainnav ul li ul a {
		padding: 0;
	}

	.header .mainnav ul.sub-2 li:hover > a {
		font-weight: bold;
		background-color: white;
		color: black;
	}
	
	.header .navwrap .mainnav li a {
		padding-top: 10px;
		padding-bottom: 12px;
		text-align: left;
	}
	
	.header .navwrap .logo {
		float: none;
		margin-right: 500px;
	}
	
	.tx-sf-event-mgt .eventlist .listblock .monthwrap {
		width: 80px;
	}
	
	.tx-sf-event-mgt .eventlist .listblock .monthwrap .mnum {
		transform: rotate(-90deg);
		transform-origin: 94px 110px;
		font-size: 90px;
		padding-bottom: 72px;
	}
	
	.tx-sf-event-mgt .eventlist .listblock .monthentrys {
		margin: 0 0 0 90px;
	}
	
	.tx-sf-event-mgt .eventlist .listblock .listwrap h2{
    margin-left: 90px;
	}
    
    .ctype-container.layout-6 .grid-container .ctype-textmedia {
		width: 50%;
		border: 5px solid transparent;
	}
    
    .content .layout-10 .container >div{width:100%;}
}

/************************************************/

@media screen and (max-width: 980px) {
	.ctype-imageslider .container-fluid .caption {
		position: relative;
	}
	.ctype-imageslider .container-fluid .caption .caption-wrap {
		position: relative;
		width: 100%;
		box-sizing: border-box;
		right: 0;
		left: 0;
		bottom: inherit;
	}
	.container .grid-container .tbl {
		border-spacing: 10px 0;
	}
	
	.container.layout-3 .ce-textpic.ce-right.ce-intext .ce-gallery,
	.container.layout-3 .ce-textpic.ce-right.ce-intext .ce-gallery figure	{
    width: 300px;
	}
	
	.container.layout-3 .ce-textpic.ce-right.ce-intext .ce-gallery figure img {
    width: 500px;
		max-width: none;
		margin-left: -200px;
	}
	
	.footer .service .tbl .tcell {
    padding: 0 10px;
	}
	
	.footer div.copyright {
		padding-left: 10px;
	}
	
	.footer  div.sponsorright,
	.footer div.copyright {
		width:100%;
		float:left;
		text-align: left;
		max-width: 100%;
		padding:0px 10px 10px 10px;
		background: #fff;

	}
	.footer  div.sponsorright{padding:10px 10px 60px 10px;}
	.footer  div.sponsorright:after{
		top:10px;
		left:0px;
		right:inherit;
		position: relative;

	}

	.ctype-textmedia.layout-2 .container .ce-textpic .ce-bodytext p a {
		max-width: none;
		text-align: center;
	}
	
	.ctype-textmedia.layout-2 .container .ce-textpic .ce-bodytext p a:after {
		position: relative;
		top: 10px;
		margin: 0 auto;
	}
	
	.ctype-textmedia.layout-2 .container .ce-textpic .ce-bodytext p a:hover:after {
		top: 20px;
	}
	
	.ctype-container.layout-6 .grid-container {
		padding: 0 5px;
	}
    
    
  /*  div.slider .ce-imageslider{
        max-height: inherit;
        margin-bottom: 0;
    }
    .header .slider .imgslide a {position: relative;
    width:100%;
    left:inherit;
    bottom: inherit;
        right: inherit;
        box-sizing: border-box;
        padding-left:40px;
    }
*/
    
	div.imgslide header {
		display: none;
	}
    .himgwrap.ce-layout-0 .bgimgwrap .textwrap h1 {font-size: 60px;}
	.header .slider .imgslide .text-wrap{
		position: relative;
		width:100%;
		box-sizing: border-box;
		right:0;
		left:0;
		bottom:inherit;
	
	}
    
}

/************************************************/

@media screen and (max-width: 780px) {
	
	.tbl,
	.tbl .trow,
	.tbl .tcell	{
		display: block;
		width: auto !important;
	}

	.container{
		padding:0;
	}
	
	.container .ctype-textmedia {
	margin-bottom: 10px;
	margin-left: 0;
	}
	
	
	.ce-textpic.ce-right.ce-intext.ce-nowrap .ce-bodytext {
    margin-right: 0;
	}
	
	div.slope, div.slope.tt:before, div.slope.tb:after {
		height: 50px;
	}
	
	.container.layout-3:before,
	.container.layout-3:after	{
    height: 50px;
	}
	
	.footer .service .tbl .tcell {
    /*padding: 0 0 30px 80px;*/
		border: none;
	}
	
	
	
	.ctype-image.layout-1 header {
		display: none;
	}
	
	.tx-sf-event-mgt .eventlist .listblock .listwrap h2 {
		margin-left: 0;
	}
	
	.tx-sf-event-mgt .eventlist li.event-jump-item .tbl .tcell.cright {
    padding: 0;
	}
	
	.tx-sf-event-mgt .eventlist li.event-jump-item {
    border-top: 1px solid #000;
    padding: 5px 0 10px;
	}
	
	.tx-sf-event-mgt .eventlist .listblock .monthentrys {
		margin: 0 0 0 0px;
	}
	
	.ctype-container.layout-5 .tbl>div {
		display: block;
	}
	
	.ce-textpic .ce-gallery img {
		width: 100%;
		margin: auto;
		max-width: 100%;
	}

	#c503 img, #c557 img, #c562 img, #c127 img, #c79 img, #c77 img {width: 50%;}
	#c503 .tcell.cols-60-40-r .ce-bodytext, #c557 .tcell.cols-60-40-r .ce-bodytext, #c562 .tcell.cols-60-40-r .ce-bodytext, #c127 .ce-bodytext, #c79 .ce-bodytext, #c77 .ce-bodytext {padding-left: 25%; padding-right: 25%;}

	.ctype-textmedia.layout-1 .image-embed-item {
		width: 100%;
	}

	.ctype-textmedia.layout-1 .ce-textpic.ce-right.ce-intext .ce-gallery {
		margin: auto;
		padding: 0 10px;
	}

	.ctype-textmedia.layout-1 .ce-textpic.ce-left.ce-intext .ce-gallery {
		margin: auto;
		padding: 0 10px;
	}

	.ctype-textmedia .container .ce-textpic .ce-bodytext {
		text-align: left;
		padding: 20px 10px 50px;
	}

	.footer .ctype-textmedia .container .ce-textpic.ce-center.ce-above .ce-bodytext {
		padding: 0;
	}

	.ce-textpic .ce-gallery .ce-column {
		max-width: 100%;
	}

	.container.layout-8 .ctype-textmedia {
		padding-left: 0px;
		padding-right: 0px;
	}

	.ctype-container.layout-6 .grid-container .ctype-textmedia {
		width: 100%;
		border-left: 5px solid transparent;
		border-right: 5px solid transparent;
	}

	.tbl .tcell.col1 {
		display: block;
		border: none;
	}
	.tbl .tcell.col2 {
		display: block;
		border: none;
	}
	.tbl .tcell.col3 {
		display: block;
		border: none;
	}

	.tx-sf-event-mgt .eventlist .listblock .monthwrap {
		border-top: none;
		margin-bottom: 10px;
	}

	.tx-sf-event-mgt .eventlist .listblock .monthwrap .mnum {
		padding-bottom: 0px;
		transform: none;
	}

	.himgwrap.ce-layout-0 .bgimgwrap .textwrap {
		display: none;
	}

	.ctype-textmedia .container .ce-textpic header {
		padding: 50px 10px 0;
	}

	.accbeforetext {
		padding: 20px 10px 20px;
	}

	ul.accordion li.entry div.toggle-wrap {
		margin-left: 10px;
	}
    
     

	.d-sm-none, .d-md-none {display: none;}
	.d-lg-none {display: block;}

	.cele.ctype-textmedia .ce-left.ce-intext.ce-nowrap, .cele.ctype-image .ce-left.ce-intext.ce-nowrap {
		flex-direction: column;
	}
	.cele.ctype-textmedia .ce-right.ce-intext.ce-nowrap, .cele.ctype-image .ce-right.ce-intext.ce-nowrap {
		flex-direction: column-reverse;
	}
	.cele.ctype-textmedia .ce-left.ce-intext.ce-nowrap .ce-gallery, 
	.cele.ctype-image .ce-left.ce-intext.ce-nowrap .ce-gallery, 
	.cele.ctype-textmedia .ce-right.ce-intext.ce-nowrap .ce-gallery, 
	.cele.ctype-image .ce-right.ce-intext.ce-nowrap .ce-gallery {
		padding: 0;
		width: 100%;
		max-width: none;
	}
	.container-padding {
		padding: 100px 0;
	}
	.container-fluid .column-row, .container-padding .column-row {
		padding: 0;
	}
	.column-row .col-6 {
		width: 100%;
		padding: 0;
	}
}
/************************************************/

@media screen and (max-width: 690px) {
	.cele.ctype-textmedia.layout-0.nodesktop h1 {font-size: 2em;}
	
}
/************************************************/

@media screen and (max-width: 600px) {
	.ce-textpic.ce-left.ce-intext .ce-gallery {
			float: none;
			padding-left: 40px;
	}

	.calenderitem-img {
		width: 100%;
        padding:10px 0 10px 0;
	}

	.cele.ctype-textmedia.layout-0.nodesktop h1 {font-size: 2.8em;}
	.cele.ctype-textmedia.layout-0.nodesktop h1:before {
		width: 36px;
		height: 36px;
	}
	.container.layout-3 .ce-textpic.ce-right.ce-intext .ce-gallery {
		
	}
	.container.layout-3 .ce-textpic.ce-right.ce-intext .ce-gallery, .container.layout-3 .ce-textpic.ce-right.ce-intext .ce-gallery figure{
		width:100%;
		padding-bottom: 20px;
	}
	.container.layout-3 .ce-textpic.ce-right.ce-intext .ce-gallery figure img{
		width:100%;
		height:auto;
		margin:0;
	}
	
}
/************************************************/

@media screen and (max-width: 506px) {
	.cele.ctype-textmedia.layout-0.nodesktop h1 {font-size: 2.4em;}
	.cele.ctype-textmedia.layout-0.nodesktop h1:before {
		width: 30px;
		height: 30px;
	}
}

/************************************************/

@media screen and (max-width: 480px) {

	.footer .service .tbl .tcell {
		padding: 0 0 0 10px;
	}
	
	.container {
		padding: 20px 0;
	}
	
	.container header h2 {
		margin: 0 0 20px 0;
	}
	
	.flex-direction-nav a:link, .flex-direction-nav a {
    width: 40px;
    height: 40px;
    background-size: 40px 40px;
		margin: -15px 0 0 0;
	}
	
	.container .grid-container .tbl {
		border-spacing: 0 0;
	}
	
	div.slope, div.slope.tt:before, div.slope.tb:after {
		height: 20px;
	}
	
	.container.layout-3:before,
	.container.layout-3:after	{
    height: 20px;
	}
	
	.container {
    padding: 20px 0;
	}

	.cele.ctype-header.layout-0 header h1 {font-size: 24px}

	.ctype-textmedia.layout-2 .container {padding: 80px 0px;}
	.ctype-textmedia.layout-2 .container .ce-textpic.ce-center.ce-above .ce-bodytext a {font-size: 12px;}

	.header .logo a, .header .logo img {width: 98%}
}
/************************************************/

@media screen and (max-width: 430px) {
	.cele.ctype-textmedia.layout-0.nodesktop h1 {font-size: 2em;}
	.cele.ctype-textmedia.layout-0.nodesktop h1:before {
		width: 24px;
		height: 24px;
	}
}

@media screen and (max-width: 350px) {
	.cele.ctype-textmedia.layout-0.nodesktop h1 {font-size: 1.7em;}
	.cele.ctype-textmedia.layout-0.nodesktop h1:before {
		width: 20px;
		height: 20px;
	}
}