.hotgraphic-component {

	.hotgraphic-graphic {
		position: relative;
		display: inline-block;
		width: 100%;
	}

	.hotgraphic-graphic-pin {
		display: block;
		position: absolute;
		top: 0%;
		left: 0%;
		background-color: @item-text-color;
		border-radius: 50%;
		text-decoration: none;

		&.has-pin-image {
			background-color: transparent !important;
			border-radius: 0;
			line-height: 0;
		}

		&.visited {
			.hotgraphic-graphic-pin-icon {
				color: @item-color-visited;
			}
			background-color:#d4e9d1;
		}
		.no-touch &:hover {
			.hotgraphic-graphic-pin-icon {
				color: @item-color-hover;
			}
		}
	}

	.hotgraphic-graphic-pin-icon {
		color: @item-color;
		font-size: (@icon-size*2);
		height: (@icon-size*2);
		width: (@icon-size*2);
	}

	.hotgraphic-popup {
		display: none;
	    margin: 0;
	    padding: 10px;
	    position: relative;
	    top: 0;
	    right: 0;
	    bottom: 0;
	    left: 0;
	    border: none;
	    background-color: rgba(0, 0, 0, 0.01) !important;
	}

	.hotgraphic-popup-toolbar {
		position: relative;
		/*background-color: @item-color;*/
		/*height: (@component-padding - 10);*/
	}

	.hotgraphic-popup-nav {
		/*background-color: @item-color;*/
		display:none;
	}

	.hotgraphic-popup-done {
		display:none;
		position: absolute;
		top: -10px;
		right: -10px;
		z-index: 11;
		text-decoration: none;
		.dir-rtl & {
			right: inherit;
			left: 0;
		}
		.no-touch &:hover {
			.hotgraphic-popup-close {
				color: @button-text-color-hover;
			}
		}
	}

	.hotgraphic-popup-arrow-l,
	.hotgraphic-popup-arrow-r,
	.hotgraphic-popup-close {
		padding: (@item-margin + 1);
		color: @button-text-color;
		background: red;
    	border-radius: 50%;
	}

	.hotgraphic-popup-count {
		padding: @item-padding;
		vertical-align: baseline;
		color: @item-text-color;
		float: left;
		.dir-rtl & {
			float: right;
		}
		span {
			display: inline-block;
		}
	}

	.hotgraphic-popup-controls {
		float: left;
		text-decoration: none;
		.dir-rtl & {
			float: right;
		}
		.no-touch &:hover {
			.hotgraphic-popup-arrow-l,
			.hotgraphic-popup-arrow-r {
				color: @button-text-color-hover;
			}
		}
		&.disabled {
			visibility: hidden;
		}
	}

	.hotgraphic-popup-inner {
		/*padding: @item-padding;*/
		width:90%;
		max-height: 100%;
	    -webkit-box-sizing: border-box;
	    -moz-box-sizing: border-box;
	    box-sizing: border-box;
	    overflow: auto;
	    background-color: #d4e9d1;
	    border-radius: 0px;
	    color: #000137;
	    z-index: 1;
   		position: relative;
   		margin: 0 auto;
    	display: block;
   		/*bottom:15px;*/
	}

	.hotgraphic-item-graphic {
		display:none;
	}

	.hotgraphic-item-content {
		width: 100%;
		//float: right;
		padding:0 10px;
		box-sizing:border-box;
		//padding-top:8%;
		.dir-rtl & {
			float: right;
		}
	}

}

.hotgraphic-item:not(.active) {
	display: none;
}

.notify.hotgraphic {

	.notify-popup {
		max-width: @device-width-large;
		left: 50%;
		transform: translateX(-50%);
		background-color: transparent;
		color: @font-color;
		
		.notify-popup-inner {
			padding: 0;
		}

		.notify-popup-content {
			width: auto;
		}
	}

	.notify-popup-content-inner {
		.hotgraphic-popup {
			width: auto;
			height: auto;
			background-color: @background-color;
			border: @item-border;
			z-index: 5;
			position: relative;
			padding-top: (@item-padding-top + @item-padding-bottom) + @icon-size;
		}

		.hotgraphic-popup-toolbar {
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			background-color: @item-color;
			height: (@item-padding-top + @item-padding-bottom) + @icon-size;
		}

		.hotgraphic-popup-nav {
			background-color: @item-color;
		}

		.hotgraphic-popup-done {
			position: absolute;
			top: 0;
			right: 0;
			text-decoration: none;
			.dir-rtl & {
				right: inherit;
				left: 0;
			}
			.no-touch &:hover {
				.hotgraphic-popup-close {
					color: @button-text-color-hover;
				}
			}
		}

		.hotgraphic-popup-arrow-l,
		.hotgraphic-popup-arrow-r,
		.hotgraphic-popup-close {
			padding: @item-padding;
			color: @button-text-color;
		}

		.hotgraphic-popup-count {
			padding: @item-padding;
			vertical-align: baseline;
			color: @item-text-color;
			float: left;
			.dir-rtl & {
				float: right;
			}
			span {
				display: inline-block;
			}
		}

		.hotgraphic-popup-controls {
			float: left;
			text-decoration: none;
			.dir-rtl & {
				float: right;
			}
			.no-touch &:hover {
				.hotgraphic-popup-arrow-l,
				.hotgraphic-popup-arrow-r {
					color: @button-text-color-hover;
				}
			}
			&.disabled {
				visibility: hidden;
			}
		}

		.hotgraphic-popup-inner {
			padding: @item-padding;
		}

		.hotgraphic-item-graphic {
			padding-left: @item-padding-left;
			width: 50%;
			box-sizing: border-box;
			float: right;
			.dir-rtl & {
				float: left;
			}
			text-align: center;
		}

		.hotgraphic-item-graphic-inner{
			img {
				display: block;
			}
			.dir-rtl & {
				padding-left: inherit;
				padding-right: @item-padding-left;
			}
		}

		.hotgraphic-item-content {
			width: 50%;
			float: left;
			.dir-rtl & {
				float: right;
			}
		}

		.graphic-attribution {
			font-size: 0.75em;
			line-height: 1em;
			padding-top: 0.5em;
		}
	}
}

// Hotgraphic Narrative

.hotgraphic-narrative {
	position: relative;
	max-height: 500px;
	height: 500px;

	.hotgraphic-graphic-pin {
		border-radius: 0px;
		position: absolute;
		display: block;
		box-sizing: border-box;
		-moz-box-sizing: border-box;
		-webkit-box-sizing: border-box;
		border: 4px solid @background-color;
		background-size: cover;
		transition: background-size .4s;
		overflow: hidden;

		.hotgraphic-graphic-pin-image {
			display:block;
			width: auto;
			height: 100%;
			-webkit-transition: transform .4s;
			transition: transform .4s;
			background-size: cover;
			&:before {
				content: '';
				position: absolute;
				top: 0px;
				left: 0px;
				width: 100%;
				height: 100%;
				background: fadeout(@foreground-color, 50%);
				transition: background .5s;
			}
		}

		&:hover {
			.hotgraphic-graphic-pin-image {
				-webkit-transform: scale(1.1);
				transform: scale(1.1);
				&:before {
					background: fadeout(@foreground-color, 100%);
				}
			}
		}
	}
}

// Narrative Pin Size & Position

.cols-1 {
	width: 25%;
}

.cols-2 {
	width: 50%;
}

.cols-3 {
	width: 75%;
}

.cols-4 {
	width: 100%;
}

.rows-1 {
	height: 50%;
}

.rows-2 {
	height: 100%;
}
