	/* Modals (mixins)
    ================================================== */

    // Set width of modal
	@mixin modal-width ($width) {
		width: $width;
		margin-left: -$width/2;
	}

	// Set position of modal
	@mixin modal {
		top: 60px !important; 
		left: 50%;
		height: auto; 
	}

	// Button set for modal
	@mixin modal-button-set {
		position: absolute;
		bottom: 10px;
		left: 0;
		padding: 0 10px;
		@include breakpoint($tablet) {
			position: relative;
			bottom: auto;
			padding: 0;
		}
	}
	
	/* Modals (Style, Positioning, Size)
    ================================================== */
		
	.reveal-modal-bg { 
		position: fixed; 
		height: 100%;
		width: 100%;
		background: $black;
		background: rgba(0,0,0,.8);
		z-index: 100;
		display: none;
		top: 0;
		left: 0; 
	}
	
	.reveal-modal {
		visibility: hidden;
		position: fixed;
		overflow: scroll;
		width: 100%;
		height: 100%;
		padding: 40px 10px 15px;
		background: $white;
		z-index: 101;
		-moz-box-shadow: 0 0 10px rgba(0,0,0,.4);
		-webkit-box-shadow: 0 0 10px rgba(0,0,0,.4);
		box-shadow: 0 0 10px rgba(0,0,0,.4);

		@include breakpoint($mobile $tablet) { 
			top: 0 !important; 
			left: 0;
		}

		@include breakpoint($tablet) { 
			@include modal;
			@include modal-width(620px);
			padding: 40px 40px 30px;
			overflow: hidden;
		}

		img.main {
			width: 100%;
			margin-bottom: $gutter; 
		}

		&.large {
			@include breakpoint($tablet) { 
				@include modal-width(620px);
			}
			@include breakpoint($desktop) { 
				@include modal-width(780px);
			}
			@include breakpoint($ext-desktop) { 
				@include modal-width(1100px);
			}
		}

		&.notify, &.small {
			@include breakpoint($tablet) { 
				@include modal;
				@include modal-width(380px);
			}
		}

		&.notify {
			text-align: center;
			a { margin-bottom: 0 !important; }
		}

		h4 { margin-bottom: 5px; }

		.close-icon {
			font-size: 22px;
			line-height: .5;
			position: absolute;
			top: 12px;
			right: 12px;
			color: $grey;
			text-shadow: 0 -1px 1px rbga(0,0,0,.6);
			font-weight: bold;
			cursor: pointer;
		}
	}


