/*
-----------------------------
PVII Layout Builder Magic
by Project Seven Development
www.projectseven.com
UI Styles: p7LBM_1
-----------------------------

*** For LBM System Use Only ***
***  Do Not Edit Manually   ***

*/

.header {
    background-color: #b60f23;
    color: #FFF;
    font-family: 'Chelsea Market', "cursive;";
    margin-top: -10px;
    margin-bottom: -10px;
}
.p7LBM-1-style-1 {
background-color:#CCCCCC;
background-image: url(../images/pic-ysgol-sub.jpg);
	background-position: center;
	background-size: cover;
}
.p7LBM-1-style-2 {
	background-color: #b60f23;
	color: #FFF;
	font-family: 'Chelsea Market', "cursive;";
}
.p7LBM-1-style-2 a:link 
{
	color: #d8deed;
}

.p7LBM-1-style-2 a:visited  
{
	color: #d8deed;
}

.p7LBM-1-style-2 a:hover 
{
	color: #FFFFFF;
}
.p7LBM-1-style-3 {
background-color:#666666;
}
.p7LBM-1-style-3a {

}
.p7LBM-1-style-4 {
background-color:#333333;
}
.p7LBM-1-style-5 {
	background-color: #50B6B8;
	color: #FFF;
	font-family: 'Overlock', "cursive;";
}
.p7LBM-1-style-6 {
	background-image: url(../images/abergavenny.jpg);
	color: #000;
	font-family: 'Chelsea Market', "cursive;";
	background-position: center;
	background-size: cover;
}
.p7LBM-1-style-7 {
background-color:#FFFFFF;
}
.p7LBM-1-style-8 {
	background-color: #999999;
	color: #FFF;
	font-family: 'Staatliches', cursive;
}
.p7LBM-1-style-9 {
	background-color: #31787A;
		color: #CCC;
		font-family: 'Shadows Into Light Two', cursive;
}
.p7LBM-1-style-10 {
	color: #FFF;
	font-family: 'Overlock', "cursive;";
}
.p7LBM-1-style-11 {
	color: #FFF;
	font-family: 'Overlock', "cursive;";
}
.p7LBM-1-style-12 {
	background-color: #CCCCCC;
	color: #000;
	font-family: 'Shadows Into Light Two', cursive;
}
.p7LBM-1-style-13 {
	background-color: #ffffff;
		color: #CCC;
		font-family: 'Shadows Into Light Two', cursive;
}


/* General button style (reset) */
.btn {
	border: none;
	font-family: inherit;
	font-size: inherit;
	color: inherit;
	background: none;
	cursor: pointer;
	padding: 12px 19px;
	display: inline-block;
	margin: 15px 30px;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 700;
	outline: none;
	position: relative;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}

.btn:after {
	content: '';
	position: absolute;
	z-index: -1;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}

/* Button 1 */
.btn-1 {
	border: 2px solid #fff;
	color: #fff;
	border-radius: 12px;
	background-color: #31787A;
}

/* Button 1d */
.btn-1d {
	overflow: hidden;
}

.btn-1d:after {
	width: 0;
	height: 103%;
	top: 50%;
	left: 50%;
	background: #fff;
	opacity: 0;
	-webkit-transform: translateX(-50%) translateY(-50%);
	-moz-transform: translateX(-50%) translateY(-50%);
	-ms-transform: translateX(-50%) translateY(-50%);
	transform: translateX(-50%) translateY(-50%);
}

.btn-1d:hover,
.btn-1d:active {
	color: #31787a;
	background-color: #50b6b8
}

.btn-1d:hover:after {
	width: 90%;
	opacity: 1;
}

.btn-1d:active:after {
	width: 101%;
	opacity: 1;
}

/* Button 1e */
.btn-1e {
	overflow: hidden;
}

.btn-1e:after {
	width: 100%;
	height: 0;
	top: 50%;
	left: 50%;
	background: #fff;
	opacity: 0;
	-webkit-transform: translateX(-50%) translateY(-50%) rotate(45deg);
	-moz-transform: translateX(-50%) translateY(-50%) rotate(45deg);
	-ms-transform: translateX(-50%) translateY(-50%) rotate(45deg);
	transform: translateX(-50%) translateY(-50%) rotate(45deg);
}

.btn-1e:hover,
.btn-1e:active {
	color: #0e83cd;
}

.btn-1e:hover:after {
	height: 260%;
	opacity: 1;
}

.btn-1e:active:after {
	height: 400%;
	opacity: 1;
}

img{
	max-width: 100%;
	
}

.logo{
	max-width:200px;
}

.homepage-slide {
    /*height: 325px !important;*/
    width: 100%;
    height: 45rem ;
    margin: 0;
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    overflow: hidden;
	
	margin-bottom: -1px;	
	
}

.homepage-slide img{
	width: 100%;
	height: 100%;
	-o-object-fit: cover;
	object-fit: cover;
	-o-object-position: center;
	object-position: center;
	/*-webkit-transform: scale(1);
	transform: scale(1);
	-webkit-transition: -webkit-transform .5s;*/
	transition: -webkit-transform .5s;
	transition: transform .5s;
	transition: transform .5s,-webkit-transform .5s;
	
}

	@media only screen and (min-width: 0px) and (max-width: 700px) {
	.language-button {text-align: center;}
	}	

/*Responsive Image wedi ychwanegu gan Jemma*/

@media only screen and (min-width: 0px) and (max-width: 768px) {
	  .responsiveImage{width:100%; align:center;  }
	.homepage-slide {
		height: 20rem ;
	}
	.logo{
	max-width:130px;
}
}

@media only screen and (min-width: 768px) {
 .responsiveImage{width:20%; align:center; padding-top:150px; padding-bottom:150px;}

	
}

/*Responsive Image wedi ychwanegu gan Jemma*/

@media only screen and (min-width: 0px) and (max-width: 768px) {
	  .responsiveImage-sub{width:100%; align:center;  }
}

@media only screen and (min-width: 768px) {
 .responsiveImage-sub{width:20%; align:center; padding-top:40px; padding-bottom:40px;}
}


.line {
    border-top: 1px solid #CCC;
    border-bottom: 1px solid #CCC;
    width: 100px;
    margin-bottom: 20px;
    margin-top: 20px;
    border-left: 0;
    border-right: 0;
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
}

.line2 {
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    width: 100px;
    margin-bottom: 20px;
    margin-top: 20px;
    border-left: 0;
    border-right: 0;
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
}
.line3 {
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
    width: 100px;
    margin-bottom: 0px;
    margin-top: 0px;
    border-left: 0;
    border-right: 0;
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
}


/* unvisited link */
a:link {
	color: #333;
	text-decoration: none !important;
}

/* visited link */
a:visited {
	color: #333;
}

/* mouse over link */
a:hover {
	color: #337B7D;
}

/* selected link */
a:active {
	color: #337B7D;
}

/* Responsive iFrame */
 
.responsive-iframe-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
}
 
.responsive-iframe-container iframe,   
.vresponsive-iframe-container object,  
.vresponsive-iframe-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/* Responsive iFrame 2*/
 
.responsive-iframe-container2 {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
}
 
.responsive-iframe-container2 iframe,   
.vresponsive-iframe-container2 object,  
.vresponsive-iframe-container2 embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


.button-box {
    background-image: url(../images/home/box-1.jpg);
    background-size: cover;
    background-position: center;
}
.button-section {
	display: block;
	letter-spacing: 0.1em;
	text-shadow: 1px 1px 8px #000, 1px 1px 8px #000;
	line-height: 12em;
	box-shadow: inset 0 0 0 2000px rgba(0,0,0,0);
	-webkit-transition: all .30s ease-in-out;
	-moz-transition: all .30s ease-in-out;
	-ms-transition: all .30s ease-in-out;
	-o-transition: all .30s ease-in-out;
	transition: all .30s ease-in-out;
	text-decoration: none !important;
	text-transform: none;
	font-size: 1.4em !important;
	outline: 0;
	white-space: nowrap;
	font-weight: 700;
	color: #fff !important;
	width: 100%;
	font-family: 'Staatliches', cursive;
	margin: 0px;
	}
	
.button-section:hover { 
  box-shadow: inset 0 0 0 2000px rgba(0,0,0,0.5);
transform: scale(1.2);
}

.outer-div {
    overflow: hidden;
}

.button-box-2 {
    background-image: url(../images/home/box-2.jpg);
    background-size: cover;
    background-position: center;
}

.button-box-3 {
    background-image: url(../images/home/box-3.jpg);
    background-size: cover;
    background-position: center;
}
.button-box-4 {
    background-image: url(../images/home/box-4.jpg);
    background-size: cover;
    background-position: center;
}
.button-box-5 {
    background-image: url(../images/home/box-5.jpg);
    background-size: cover;
    background-position: center;
}
.button-box-6 {
    background-image: url(../images/home/box-6.jpg);
    background-size: cover;
    background-position: center;
}
.button-box-7 {
    background-image: url(../images/home/box-7.jpg);
    background-size: cover;
    background-position: center;
}
.button-box-8 {
    background-image: url(../images/home/box-8.jpg);
    background-size: cover;
    background-position: center;
}


@media only screen and (min-width: 1442px) and (max-width: 1516px) {
/* Responsive iFrame */
 
.responsive-iframe-container {
    position: relative;
    padding-bottom: 60%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
}
}
@media only screen and (min-width: 1105px) and (max-width: 1442px) {
/* Responsive iFrame */
 
.responsive-iframe-container {
    position: relative;
    padding-bottom: 70%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
}
 
.responsive-iframe-container iframe,   
.vresponsive-iframe-container object,  
.vresponsive-iframe-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
}
@media only screen and (min-width: 0px) and (max-width: 1150px) {
.staff-grid .hmy-section {flex-basis: 33% !important;}
}

@media only screen and (min-width: 1008px) and (max-width: 1105px) {
/* Responsive iFrame */
 
.responsive-iframe-container {
    position: relative;
    padding-bottom: 120.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
}
 
.responsive-iframe-container iframe,   
.vresponsive-iframe-container object,  
.vresponsive-iframe-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
}
@media only screen and (min-width: 962px) and (max-width: 1008px) {
/* Responsive iFrame */
 
.responsive-iframe-container {
    position: relative;
    padding-bottom: 140.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
}
 
.responsive-iframe-container iframe,   
.vresponsive-iframe-container object,  
.vresponsive-iframe-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
}
@media only screen and (min-width: 880px) and (max-width: 962px) {
/* Responsive iFrame */
 
.responsive-iframe-container {
    position: relative;
    padding-bottom: 160.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
}
 
.responsive-iframe-container iframe,   
.vresponsive-iframe-container object,  
.vresponsive-iframe-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
}

@media only screen and (min-width: 851px) and (max-width: 880px) {
/* Responsive iFrame */
 
.responsive-iframe-container {
    position: relative;
    padding-bottom: 180.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
}
 
.responsive-iframe-container iframe,   
.vresponsive-iframe-container object,  
.vresponsive-iframe-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
}

@media only screen and (min-width: 790px) and (max-width: 851px) {
/* Responsive iFrame */
 
.responsive-iframe-container {
    position: relative;
    padding-bottom: 200.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
}
 
.responsive-iframe-container iframe,   
.vresponsive-iframe-container object,  
.vresponsive-iframe-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
}
@media only screen and (min-width: 0px) and (max-width: 800px) {
.staff-grid .hmy-section {flex-basis: 50% !important;}
}

@media only screen and (min-width: 700px) and (max-width: 790px) {
/* Responsive iFrame */
 
.responsive-iframe-container {
    position: relative;
    padding-bottom: 200.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
}
 
.responsive-iframe-container iframe,   
.vresponsive-iframe-container object,  
.vresponsive-iframe-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
}

