<?php

/**
 * Provide a public-facing view for the plugin
 *
 * This file is used to markup the public-facing aspects of the plugin.
 *
 * @link       https://orbicular.media
 * @since      1.1.1
 *
 * @package    Cemetery_Sexton
 * @subpackage Cemetery_Sexton/public/partials
 */

$absolute_path = explode('wp-content', $_SERVER['SCRIPT_FILENAME']);
$wp_load = $absolute_path[0] . 'wp-load.php';
require_once($wp_load);

$options = get_option('cemetery-sexton');

header('Content-type: text/css; charset: UTF-8');
header('Cache-control: must-revalidate');
?>

/**PHP Driven
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

div.group{
	margin: 10px 0;
}
div.left-align{
	text-align: left;
	float: left;
}
div.right-align{
	text-align: right;
	float: right;
}
@media only screen and (max-width: 500px) {
  div.right-align {
    text-align: left;
	float: left;
	clear: both;
  }
}
.group:after{
	clear: both;
	content: '';
	display: block;
	visibility: hidden;
  	line-height: 0;
  	height: 0;
}
div.subheading{
	font-size: .9em;
	font-style: italic;
}
div.data {
	padding-left: 10px;
}
table.cemetery-sexton-results-list{
	line-height: 1.2em;
	margin: 0 !important;
	overflow-x: auto;
}
table.cemetery-sexton-results-footer .ltcol{
	text-align: left;
	width: 70%;
}
table.cemetery-sexton-results-footer .rtcol{
	text-align: right;
	width: 30%;
}
table.cemetery-sexton-results-list thead{
	color: #000;
	font-weight: bold;
	text-align: center;
	background: <?php echo $options['style_results_bg_header']?>;
}
table.cemetery-sexton-results-list thead a{
	color: #000;
}
table.cemetery-sexton-results-list #header-name{
	width: 60%;
}
table.cemetery-sexton-results-list #header-dob{
	width: 20%;
}
table.cemetery-sexton-results-list #header-dod{
	width: 20%;
}
table.cemetery-sexton-results-list tbody tr:nth-child(even){
	background: <?php echo $options['style_results_bg_even']?>;
}
table.cemetery-sexton-results-list tbody tr:nth-child(odd){
	background: <?php echo $options['style_results_bg_odd']?>;
}
table.cemetery-sexton-results-list tbody tr:hover{
	background: <?php echo $options['style_results_bg_hover']?>;
}
table.cemetery-sexton-results-list tbody td a { 
    display: block; 
    padding: 0; 
}
table.cemetery-sexton-results-list .result-name{
	text-align: left;
}
table.cemetery-sexton-results-list .result-date{
	text-align: right;
}
table.cemetery-sexton-results-list tbody tr td a{
	font-decoration: none;
}

@media only screen and (max-width: 699px) {
	.popup-button-mobile{
	visibility: visible;
	}
	.popup-button-desktop{
	visibility: hidden;
	height: 0;
	}
}
@media only screen and (min-width: 700px) {
	.popup-button-mobile{
	visibility: hidden;
	height: 0;
	}
	.popup-button-desktop{
	visibility: visible;
	}
}

#inter-photo {
	top: 0;
	float: right;
	margin: 6px;
}
@media only screen and (max-width: 700px) {
	#inter-photo {
	top: 0;
	float: none;
	}
}
#interment-info, 
#interment-lot,
#fammon-photos-row {
	margin: 0 0 35px 0;
	padding: 0;
}
#interment-lot {
	clear: both;
}
#interment-data-table {
	margin: 0;
	padding: 100px 0 0 0;
}
#cemetery-sexton-lot-map {
	height: 400px;
    width: 100%;
}
#cemetery-sexton-map {
	height: 400px;
    width: 100%;
    margin: 0 0 35px 0;
}
.fammon-photos-column{
	float: left;
	width: 50%;
	padding: 5px;
}
.fammon-photos-row::after{
	content: "";
	clear: both;
	display: table;
}
.thickbox-center {
	display: block;
	margin-left: auto;
	margin-right: auto;
	max-width: none !important;
}
.w-separator{
	clear: both;
	overflow: hidden;
	line-height: 0;
	height: 1.5rem;
}
.w-separator.size_small{
	height: 1.5rem;
}