
/*
Fonts

sSource sas pro semibold
sans proNixie One 
FAwesome
#cc5c28
R:19 G:192 B:220 #13c0dc
*/



body  {
	position: relative;
   }
		/* Sections
		 * --------------------------------------- */
		 
#menu {
  position: absolute;
  background: rgba(245,245,220,0.95);
  border-right: 1px solid rgba(0,0,0,0.4);
  top: 0;
  left: 0;
  height: 80px;
  width: 100%;
  display: block;
  text-align: center;
  z-index: 10001;
}
#menu a {
    width: 80%;
    display: block;
    margin-left: 10%;
	}
#menu img {
    width: auto;
    height: 60px;
    margin: 6px auto 6px;
}
.modal.fade.in .lab-modal-body {
  top: 72px;
  border-right: 1px solid rgba(0,0,0,0.4);
  opacity: 1;
  z-index: 10000;
}
.lab-modal-body {
  position: relative;
  top: -200vh;
  margin-left: 0;
  max-width: 100%;
  height: auto;
  background: rgba(245,245,220,0.95);
  opacity: 0;
  -webkit-transition: opacity 0.9s ease-out, top 0.9s ease-out;
  -moz-transition: opacity 0.9s ease-out, top 0.9s ease-out;
  -o-transition: opacity 0.9s ease-out, top 0.9s ease-out;
  transition: opacity 0.9s ease-out, top 0.9s ease-out;
}
.tab {
  background: rgba(245,245,220,0.95);
  width: 400px;
  height: calc(100vh - 90px);
  padding: 0;
  top: 72px;
  width: 400px;
  z-index: 100000;
  display: block;
  opacity: 1;
}
.tab h1	{
  width: 100%;
  background: #cc5c28;
  vertical-align: middle;
  padding: 2vh 2vw;
  font-size: 3rem;
  font-weight: 600;
  color: #eee;
  margin: 2vh 0;
}
.tab p {
    padding: 0 2vw 0;
    color: #333;
    font-size: 1.3rem;
}
.tab .logo {
  display: block;
  margin: 8px 2vw 8px;
}
.tab img {
  width: 100%;
  height: auto;
}
.tab h1 {
	text-align: center;
}
.intro {
	width: 80%;
	margin: 0 10%;
	font-size: 13px;
}

.close {
  margin-right: 1vw;
  font-size: 2.4rem;
  opacity: 1;
  float: right;
  display: inline-block;
}
.close:focus, .close:hover {
	opacity: 1;
}
.close2, .btn {
 font-size: 1.4rem;
     text-shadow: none;
}
.close2 {
   text-shadow: none;
   background: #13c0dc !important;
   width: 80% !important;
}
 button.close {
      padding: 3px 6px;
	  width: 2.4rem;
    background: #cc5c28;
 }
 
#menu button.close {
    display: block;
    position: absolute;
	right: 0;
	bottom: 10px;
    font-size: 2rem;
    text-align: center;
	background: #cc5c28;
	      padding: 3px 6px;
		    width: 2.4rem;
}

.btn {
  border-radius: 0;
}
.btn.focus, .btn:focus, .btn:hover {
    color: #111;
}
.btn-inv {
	width: 80%;
    margin: 0.5vh 10%;
	padding: 3px 6px;
	background: #13c0dc;
	color: #eee;
	font-weight: 600;
	padding: 0.5vh 0 !important; 
	font-size: 1.4rem;
    line-height: 2;
}

.btn-inv2 {
	background: #cc5c28;
	font-size: 1.2rem;
}
.btn.active, .btn:active {
    background-image: none;
    outline: 0;
    -webkit-box-shadow: none;
   box-shadow: none;
}


#footer-grid {
  width: 100%; 
  display: flex;
  flex-wrap: wrap;
  position: absolute;
  bottom: 0;
  height: 110px;
  color: #666;
  font-size: 1rem;
  margin:0;
}
#footer-grid > div {
  border-top: 1px solid rgba(0,0,0,0.3);
  padding: 1vh 0 0;
  }
#footer-grid > #uoe-terms {
  width: calc(38% - 0.5vw);
  margin: 0 0 0 0.5vw;
}
#footer-grid > #uoe-text {
   width: calc(62% - 0.5vw);
   margin: 0 0.5vw 0 0;
}
#footer-grid ul {
  list-style: none;
  padding: 0 0.5vw;
}
#footer-grid ul {
  list-style: none;
  padding: 0 0.5vw;
}
#footer-grid li {
   font-size: 1.05rem;
   margin-bottom: 0.6rem;
   line-height: 1.2;
}
#footer-grid p {
  padding: 0 0.5vw;
  margin: 0;
  font-size: 1rem;
}
    /* Colour Palette
R:204 G:92 B:40 #cc5c28
R:19 G:192 B:220 #13c0dc
R:0 G:0 B:0 #000000
R:230 G:230 B:230 #e6e6e6
R:255 G:255 B:255 #fffff
*/
  :root {
  --border-width: .24vw;
  --gutter: 2vw;
    --main-color: #111;
  }
  
  /* ====
GRID
==== */
.grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.167fr 0.45fr .225fr 0.3fr 0.8fr;
  grid-template-rows: 0.44fr 0.1875fr 0.4fr .9fr;
  grid-gap: var(--gutter);
}

.grid figure {
  overflow: hidden;
  background: var(--main-color);
  position: relative;
  opacity: 1;
  transition: .2s;

  /* Fix for Safari 10 */
  display: flex;
  flex-direction: column;
}

.grid figure img {
  vertical-align: middle;
  height: auto;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .2s;
  will-change: transform;
  clip-path:
    polygon(
      var(--border-width) var(--border-width),
      calc(100% - var(--border-width)) var(--border-width),
      calc(100% - var(--border-width)) calc(100% - var(--border-width)),
      var(--border-width) calc(100% - var(--border-width))
    );

  /* Fix for Safari 10 */
  flex-grow: 1;
}

figure:hover img {
  /*transform: scale(.995);*/
}

/* ====================
LAYOUT AND CLIP-PATH
==================== */

.grid figure:nth-child(1) {
  grid-column: 1 / 5;
  grid-row: 1 / 3;
 /* clip-path: polygon(0 0,100% 0, 100% 66%, 0% 100%); */
  -webkit-clip-path: polygon(0787px,1217px 704px,1282px 0,0 0);
   clip-path: polygon(0 787px,1217px 704px,1282px 0,0 0);
/*Firefox*/
clip-path: url("#p1-panel1");
}




.grid figure:nth-child(2) {
  grid-column: 5 / 6;
  grid-row: 1 / 3;
  clip-path: polygon(90 0, 96% 0,96% 80%, 100% 85%);
}


.grid figure:nth-child(3) {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
}
.grid figure:nth-child(4) {
  grid-column: 3 / 4;
  grid-row: 3 / 4;
  clip-path: polygon(0 22%, 100% 4px, 100% 100%, 0% 100%);
}
.grid figure:nth-child(4) img {
  clip-path:
    polygon(
      var(--border-width) calc(22% + var(--border-width)),
      calc(100% - var(--border-width)) 7px,
      calc(100% - var(--border-width)) calc(100% - var(--border-width)),
      var(--border-width) calc(100% - var(--border-width))
    );
}

.grid figure:nth-child(5) {
  grid-column: 5 / 6;
  grid-row: 3 / 4;
}

.grid figure:nth-child(6) {
  grid-column: 1 / 3;
  grid-row: 4 / 5;
}

.grid figure:nth-child(7) {
  grid-column: 4 / 6;
  grid-row: 4 / 5;
}
/*
.grid figure:nth-child(8) {
  grid-column: 2 / 3;
  grid-row: 4 / 5;
  clip-path: polygon(
    0 0,
    100% 0,
    88% 100%,
    0% 100%
  );
  width: 115%;
  width: calc(100% + var(--gutter));
}
.grid figure:nth-child(8) img {
  clip-path:
    polygon(
      var(--border-width) var(--border-width),
      calc(100% - var(--border-width)) var(--border-width),
      calc(88% - var(--border-width)) calc(100% - var(--border-width)),
      var(--border-width) calc(100% - var(--border-width))
    );
}

.grid figure:nth-child(9) {
  grid-column: 3  / 5;
  grid-row: 4 / 5;
  clip-path: polygon(19% 0, 100% 0, 100% 100%, 0% 100%);
}
.grid figure:nth-child(9) img {
  clip-path:
    polygon(
      calc(19% + var(--border-width)) var(--border-width),
      calc(100% - var(--border-width)) var(--border-width),
      calc(100% - var(--border-width)) calc(100% - var(--border-width)),
      var(--border-width) calc(100% - var(--border-width))
    );
}
*/


 .section {
  height: 100vh;
  width: auto;
  padding-top: 16px;
 }
 .section img {
    height: auto;
    width: 100%;
}

.fp-section.fp-table, .fp-slide.fp-table {
  width: 100%;
  margin: 0;
  text-align: center;
}
	  
@media screen and (min-width: 1025px) {
    #menu {
	height: 90px;	
	}
    #menu img {
    width: auto;
    height: 66px;
    margin: 8px auto 8px;
    }
	#menu, .tab {
    width: 400px;
	left: 20%;
	}
	#menu button.close {
	bottom: 10px;
	}
	.modal.fade.in .lab-modal-body {
    top: 82px;
	}
	.tab {
    width: 400px;
	left: 0;
	top: 82px;

	}
	.lab-modal-body {
    top: -200vh;
    margin-left: 20%;
    max-width: 400px;
	}
	.tab p {
    padding: 1vh 2vw;
    font-size: 1.6rem;
    }
	.fp-section.fp-table, .fp-slide.fp-table {
    width: 60%;
    margin: 0 20%;
    text-align: center;
    }
    .section {
	padding-top: 0;	
	}
	.section img {
    height: 100%;
    width: auto;
   }
	  
}/* fin */

@media only screen and (min-device-width : 768px) and (max-device-width : 1024px)  { 
  #menu {
	  width: 400px;
  }
  .tab {
    height: calc(100vh - 80px);
	}
	
  .section {
	padding: 60px 8vw 0;
  }
}/* fin */