/* @override 
	http://dev.gbnt.pt/photogroup/themes/gbnt/css/main.css
	http://photogroupservice.com/themes/gbnt/css/main.css */

/*! HTML5 Boilerplate v5.2.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */
html, body, page{
	height: 100%;
}
html {
    color: #222;
    font-size: 14px;
    line-height: 16px;
    font-family: 'Source Sans Pro', sans-serif;
    overflow-y: scroll;
    -webkit-text-size-adjust:100%; -moz-text-size-adjust:100%; -ms-text-size-adjust:100%;
    
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

.page ul{
	margin: 0;
	padding: 0;
	list-style-type: none;
}

.central a{
	text-decoration: none;
	color: black;
}

h1, h2, h3{
	margin-top: 0;
	letter-spacing: 0.05em;
}

h1, h2{
	font-size: 36px;
	line-height: 36px;
	font-weight: 900;
}

h1{
	margin-bottom: 72px;
}

h2{

	margin-bottom: 36px;
}

p{
	margin-top: 0;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

.one, .two, .three, .four{
	box-sizing: border-box;
	float: left;
}

.one{
	width: 25%;
}

.two{
	width: 50%;
}

.three{
	width: 75%;
}

.four{
	width: 100%;
}

.three .one{
	width: 33.33%;
}
.page{
	height: 100%;
}

header{
	padding: 40px 0;
	background-color: white;
	height: 145px;
	box-sizing: border-box;
	z-index: 999;
}

.logo{
	padding-left: 40px;
}

.logo a{
	display: block;
	width: 73px;
}

img{
	max-width: 100%;
	height: auto;
	display: block;
}

.nav, .social{
	font-weight: 600;
	letter-spacing: 0.08em;
	font-size: 1.1em;
	line-height: 1.5em;
}

.nav li:hover{
	cursor: pointer;
}

.nav a, .social a{
	color: #999;
	text-decoration: none;
	cursor: pointer!important;
}

.nav a:hover, .nav a.nav-path-selected, .nav a.nav-selected, .social a:hover{
	color: black;
}

.nav-dropdown, .subnav, .subnav li{
	float: left;
}

.subnav li{
	display: none;
	padding-left: 7px;
}

.nav-dropdown:hover .subnav li, .nav-dropdown.nav-path-selected .nav-selected, .nav-dropdown.nav-path-selected .nav-path-selected{
	display: block;
}

.sidebar{
	padding: 0 40px 40px;
}

.page-title{
	height: 144px;
	margin-bottom: 0;
}

.pgs-website{
	font-size: 1.1em;
	font-weight: 600;
	margin-bottom: 36px;
	display: block;
	letter-spacing: 0.08em;
}

.central.full{
	box-sizing: border-box;
	width: 100%;
}

main{
	padding: 0;
}

main.four{
	height: 100%;
}

.pgs-wall{
	width: 100%;
}

.pgs-wall li{
	position: relative;
	height: auto;
	background-color: black;
}

.pgs-wall li a:hover{
	opacity: 1;
}

.pgs-wall li a:hover > img{
	opacity: .4;
	z-index: -1;
	
}

.pgs-wall li a:hover > h3{
	opacity: 1;
	z-index: 2;
}

.pgs-wall li a{
	display: block;
	height: 100%;
}

.pgs-wall li h3{
	width: 100%;
	text-align: center;
	box-sizing: border-box;
	left: 0;
	padding: 0 20px;
	position: absolute;
	top: 50%;
	-webkit-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	transform: translateY(-50%);
	color: white;
	text-decoration: none;
	font-size: 36px;
	line-height: 36px;
}

.pgs-wall li img{
	top: 0px;
	left: 0px;
	z-index: -1;
}

.pgs-gallery{
	width: 100%;
	background-color: white;
}
.pgs-gallery-item{
	box-sizing: border-box;
	position: relative;
	width: 100%;
	padding-left: 3px;
}

.pgs-gallery-buttons{
	width: 70px;
	text-align: right;
	position: absolute;
	right: 0;
	top: 0;
	padding-right: 30px;
	padding-top: 30px;
	height: 70px;
}

.logged-in .pgs-gallery-buttons{
	width: 70px;
	top: 50px;
}

.pgs-gallery-buttons a{
	display: block;
	float: right;
	clear: right;
	color: #999;
}

.pgs-gallery-buttons a:hover{
	color: black;
}

.pgs-gallery-fullscreen-button{
	width: 26px;
	height: 26px;
	background: url(../images/arrow_max.png);
	background-size: 26px;
	margin-bottom: 10px;
	color: #999;
	margin-top: 1px;
}
.pgs-gallery-info-button{
	padding-top: 0;
}

.pgs-gallery-info{
	font-size: 1.1em;
	box-sizing: border-box;
	opacity: 0;
	position: absolute;
	width: 100%;
}

.info-open .pgs-gallery-info{
	opacity: 0.95;
	z-index: 9;
}

.pgs-gallery-img-title{
	color: #999;
	font-weight: 600;
	padding: 30px;
	background-color: white;
	box-sizing: border-box;
}

.video-gallery .pgs-gallery-info .pgs-gallery-img-title{
	padding-top: 50px;
}

.pgs-gallery-img-description{
	font-size: 1em;
	color: #999;
}

.pgs-gallery-video{
	padding-top: 50px;
}

.pgs-gallery li img{
	max-width: 100%;
	height: auto;
	display: block;
	background-color: white;
	max-height: 800px;
}

.flickity-prev-next-button{
	opacity: 0;
}

.video-gallery .flickity-prev-next-button{
	opacity: 1!important;
}

.pgs-gallery:hover .flickity-prev-next-button{
	opacity: 1;
}

.pgs-gallery.is-expanded { 
	width: 100%;
}

.pgs-gallery.is-expanded .gallery-cell {
  height: 320px;
}

main.three.fullscreen{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	box-sizing: border-box;
	padding: 100px;
	background-color: white;
	height: 100%;
	background-image: none;
}

.fullscreen .pgs-gallery{
	height: 100%!important;
}

.fullscreen .pgs-gallery-item{
	height: 100%;
}

.fullscreen .pgs-gallery li img{
	max-height: 100%!important;
	width: auto!important;
	display: block;
	margin-right: auto;
	margin-left: auto;
}

.fullscreen .pgs-gallery-fullscreen-button{
	background: url(../images/arrow_min.png);
	background-size: 26px;
}

.fullscreen .pgs-gallery-img-title{
	text-align: center;
}
.pgs-gallery-home{
	width: 100%;
}

.pgs-gallery-home-item{
	height: 100%;
	width: 100%;
	background-size: cover;
	background-position: 50%;
}

.pgs-gallery-home-item-img{
	width: 100%;
	height: auto;
}

.pgs-gallery-home-item a{
	display: block;
	width: 100%;
	height: 100%;
}

main.three{
	background: url(../images/pgs_loader.gif) left center no-repeat;
	min-height: 22px;
}

.pgs-gallery-home-info{
	width: 100%;
	box-sizing: border-box;
	background-color: white;
	left: 0;
	bottom: 0;
	position: absolute;
	display: none;
	opacity: 0.95;
	font-weight: 600;
	font-size: 1.1em;
}

.pgs-gallery-home:hover .pgs-gallery-home-info{
	display: block;
}
.pgs-gallery-home-info-name, .pgs-gallery-home-info-caption, .pgs-gallery-home-info-title{
	padding: 30px;
	float: left;
}

.pgs-gallery-home-info-caption, .pgs-gallery-home-info-title{
	font-size: 1em;
	color: #999;
}

.pgs-gallery-home-info-title, .pgs-gallery-home-info-caption{
	display: none;
}


/*! Flickity v1.0.2
http://flickity.metafizzy.co
---------------------------------------------- */

.flickity-enabled {
  position: relative;
}

.flickity-enabled:focus { outline: none; }

.flickity-viewport {
  overflow: hidden;
  position: relative;
  height: 100%;
}

.flickity-slider {
  position: absolute;
  width: 100%;
  height: 100%;
}

/* draggable */

.flickity-enabled.is-draggable {
  -webkit-tap-highlight-color: transparent;
          tap-highlight-color: transparent;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.flickity-enabled.is-draggable .flickity-viewport {
  cursor: move;
  cursor: -webkit-grab;
  cursor: grab;
}

.flickity-enabled.is-draggable .flickity-viewport.is-pointer-down {
  cursor: -webkit-grabbing;
  cursor: grabbing;
}

/* ---- previous/next buttons ---- */

.flickity-prev-next-button {
  position: absolute;
  top: 153px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: transparent;
	cursor: pointer;
  /* vertically center */
  -webkit-transform: translateY(-50%);
      -ms-transform: translateY(-50%);
          transform: translateY(-50%);
}

.video-gallery .flickity-prev-next-button{
	top: 22px;
}

.fullscreen .flickity-prev-next-button{
	top: 199px
}

.flickity-prev-next-button:hover { background: transparent;
}

.flickity-prev-next-button:focus {
  outline: none;
  box-shadow: 0 0 0 5px #09F;
}

.flickity-prev-next-button:active {
  filter: alpha(opacity=60); /* IE8 */
  opacity: 0.6;
}

.flickity-prev-next-button.previous { left: 15px; }
.flickity-prev-next-button.next { right: 15px; }

.fullscreen .flickity-prev-next-button.previous { left: -84px; }
.fullscreen .flickity-prev-next-button.next { right: -84px; }

/* right to left */
.flickity-rtl .flickity-prev-next-button.previous {
  left: auto;
  right: 10px;
}
.flickity-rtl .flickity-prev-next-button.next {
  right: auto;
  left: 10px;
}

.flickity-prev-next-button:disabled {
  filter: alpha(opacity=30); /* IE8 */
  cursor: auto;
	display: none;
}

.flickity-prev-next-button svg {
  position: absolute;
  left: 20%;
  top: 20%;
  width: 60%;
  height: 60%;
}

.flickity-prev-next-button .arrow {
  fill: #999;
}

.video-gallery .flickity-prev-next-button .arrow {
  fill: black;
}

.fullscreen .flickity-prev-next-button .arrow {
  fill: #999;
}

/* color & size if no SVG - IE8 and Android 2.3 */
.flickity-prev-next-button.no-svg {
  color: #333;
  font-size: 26px;
}

/* ---- page dots ---- */

.flickity-page-dots {
  position: absolute;
  width: 100%;
  bottom: -25px;
  padding: 0;
  margin: 0;
  list-style: none;
  text-align: center;
  line-height: 1;
}

.flickity-rtl .flickity-page-dots { direction: rtl; }

.flickity-page-dots .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 8px;
  background: #333;
  border-radius: 50%;
  filter: alpha(opacity=25); /* IE8 */
  opacity: 0.25;
  cursor: pointer;
}

.flickity-page-dots .dot.is-selected {
  filter: alpha(opacity=100); /* IE8 */
  opacity: 1;
}

.extras main{
	margin-bottom: 200px;
}

.extras main h2{
	margin-top: 60px;
}

.extras main h3{
	font-size: 1.2em;
	line-height: 1.3em;
}

.extras main p{
	font-size: 1.2em;
	line-height: 1.3em;
}

.extras main p a{
	text-decoration: underline;
	color: blue;
}

.extras main ul{
	list-style-type: disc;
	padding-left: 20px;
	font-size: 1.2em;
	line-height: 1.3em;
	margin-bottom: 1em;
}

.extras main h5{
	font-size: 1.2em;
	line-height: 1.3em;
	font-style: italic;
	color: red;
}

.extras main img:nth-of-type(5){
	border: 5px solid red!important;
	width: 200px;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers:
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */
@media only screen and (max-width: 1200px) {
	    	    
	    header .one, header .two, .sidebar.one, .four .one{
	    	width: 33.33%;
	    }
	    
	    .three .one{
	    	width: 50%;
	    }
	    
	    main.three{
	    	width: 66.66%;
	    }
	    
}

@media only screen and (max-width: 767px) {
	    
	    header{
			padding: 70px 20px 40px;
			height: 175px;
		}
	    .one, .two,.three .one, .three, .four .one{
	    	width: 100%;
	    }
	    
	    header .logo.one{
	    	width: 40%;
	    	padding-left: 0;
	    }
	    
	    header nav.two{
	    	width: 60%;
			text-align: right;
		}
		
		header nav li{
			float: right;
			clear: right;
		}
	    
	    ul.social.one{
			padding: 10px 20px;
			width: 100%;
			position: absolute;
			top: 0;
			left: 0;
			background-color: black;
			text-align: center;
		}
		.logged-in ul.social.one{
			top: 50px;
		}
		ul.social.one a:hover{
			color: white;
		}
	    .social li{
			float: left;
			width: 33.33%;
		}
		.nav-dropdown{
			padding-right: 0px;
			float: right;
		}
		.nav-dropdown a{
			float: left;
		}
		.nav, .social{
			letter-spacing: 0.03em;
		}
		.subnav li{
			display: none;
			padding-left: 7px;
		}
		
		.nav-dropdown.nav-path-selected .subnav li{
			display: block;
		}
		
		.nav-dropdown:hover .subnav li, .nav-dropdown.nav-path-selected .nav-selected, .nav-dropdown.nav-path-selected .nav-path-selected{
			display: block;
		}
		
		main.one{
			padding-right: 20px;
			padding-left: 20px;
		}
		
		main.one p, .sidebar p{
			font-size: 18px;
			line-height: 1.2em;
		}
		
		main.three{
			clear: left;
			width: 100%;
		}
		
		.sidebar.one{
			width: 100%;
			padding: 0 20px 50px;
		}
		
		.pgs-gallery-home-info-name, .pgs-gallery-home-info-caption, .pgs-gallery-home-info-title{
			padding: 20px;
		}
		
		.pgs-gallery-buttons{
			top: 377px;
			padding-right: 20px;
			padding-top: 0px;
			width: 130px;
			right: 0;
		}
		
		.fullscreen .pgs-gallery-buttons{
			top: 5px;
			padding-right: 20px;
			padding-top: 0px;
			right: 0;
		}
		
		.pgs-gallery-buttons a{
			float: right;
			clear: none;
			margin-bottom: 0;
			margin-left: 20px;
		}
		
		.pgs-gallery-buttons a.pgs-gallery-info-button{
			margin-top: 5px;
		}
		
		main.three.fullscreen{
			padding: 40px 20px 20px;
			
		}
		
		.fullscreen .flickity-prev-next-button.previous { left: 5px; }
		.fullscreen .flickity-prev-next-button.next { right: 5px; }
		
		.pgs-wall li a img{
			opacity: .6;
			z-index: -1;
		}
		
		.pgs-wall li a h3{
			z-index: 2;
		}
		
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
