/* Grind Roast Masters – static rebuild of the original Joomla "unley" template */

html {margin: 0; padding: 0;}
body {background-color: #000; background-image: url(../images/template/bk.jpg); background-size: cover; background-attachment: fixed; color: #b3b3b3; font-size: 15px; font-family: 'Merriweather', serif; font-weight: 400; margin: 0; min-height: 100%; padding: 0; text-align: left;}
a {color: #FFF;}
a:hover {text-decoration: none; color: #FFF;}
.bolder {font-weight: 700; font-style: italic;}
img {border: 0 none;}

/* Sidebar: logo and locations */
#logowrapper {text-align: center; color: #FFF; text-shadow: 0 2px 2px rgba(0,0,0,0.45); padding: 0;}
#logowrapper img {margin-bottom: 50px; box-shadow: 0 2px 4px rgba(0,0,0,0.15), 0 4px 8px rgba(0,0,0,0.15), 0 8px 16px rgba(0,0,0,0.15), 0 16px 32px rgba(0,0,0,0.15);}
#logoheader .custom {padding: 0;}
.hours a, .hours .hours-link {font-size: 13px;}
.hours a:hover, .hours .hours-link:hover {border-bottom: 1px solid rgba(255,255,255,0.35); padding-bottom: 4px; color: #FFF;}
.hours hr {border-bottom: 3px solid #FFF; margin: 30px 0;}
.hours p {padding: 0;}
.hours .address {font-size: 14px; border-bottom: 1px solid rgba(255,255,255,0.35); margin-bottom: 10px; display: inline-block;}
.hours .address:hover {border-bottom: 1px solid transparent; padding-bottom: 0;}

/* "Opening Hours" buttons look like the original links */
.hours-link {background: none; border: 0; padding: 0; color: #FFF; font: inherit; cursor: pointer; text-shadow: inherit;}
.hours-link:focus:not(:focus-visible), .gallery-link:focus:not(:focus-visible) {outline: none;}

/* Header: phone and socials */
#header {color: #FFF; margin: 52px 0; text-shadow: 0 2px 2px rgba(0,0,0,0.45);}
#header p, #footer p {margin: 0;}
#contactdetails {text-align: right;}
#contactdetails a {color: #FFF;}
.telephone {font-size: 20px; margin-right: 30px;}
.telephone:hover {border-bottom: 1px solid rgba(255,255,255,0.35); padding-bottom: 4px;}
.socials {background: #474747; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; margin-right: 10px; width: 55px; height: 55px; border-radius: 50px; box-shadow: 3px 2px 5px rgba(0,0,0,0.45);}
.socials:hover {background: #676767;}
.socials svg {width: 28px; height: 32px; fill: #FFF;}

/* Gallery */
.item-page img {opacity: 1; transition: opacity .25s ease-in-out;}
.item-page img:hover {opacity: 0.8;}
.gallery-link {display: block; background: none; border: 0; padding: 0; width: 100%; cursor: zoom-in;}

/* Footer */
#footer {background: url(../images/template/footer.jpg) no-repeat center top; color: #FFF; font-size: 17px; text-align: center; transition: all .5s;}
#footer:hover {transform: scale(1.10);}
#footer a {padding: 40px 0; color: #FFF; display: block;}
#footerwrapper {margin-bottom: 30px;}
.adelaide-websites p {margin: 30px 0; text-align: center;}
.adelaide-websites p a {font-size: 13px; opacity: 0.7; font-style: italic;}
.adelaide-websites p a:hover, .adelaide-websites p a:focus {color: #fff; opacity: 0.85;}

/* Popups (native HTML popover – replaces the JCE MediaBox plugin) */
[popover] {border: 0; padding: 0; margin: auto; background: transparent; overflow: visible; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px);}
[popover]::backdrop {background: rgba(0,0,0,0.8);}
.popup-box {position: relative; background: #FFF; color: #333; padding: 20px; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,0.5);}
.popup-box h2 {font-size: 18px; margin: 0 30px 15px 0; color: #333;}
.popup-box .table {margin: 0; width: 320px; max-width: 100%;}
.popup-photo .popup-box {padding: 10px;}
.popup-photo img {display: block; max-width: calc(100vw - 52px); max-height: calc(100vh - 52px); width: auto; height: auto;}
.popup-close {position: absolute; top: -14px; right: -14px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid #FFF; background: #000; color: #FFF; font-size: 20px; line-height: 1; cursor: pointer;}

@media only screen and (min-width: 768px) and (max-width: 991px) {
	.telephone {display: block; margin: 0 0 15px 0;}
	.telephone:hover {border-bottom: 1px transparent; padding-bottom: 0;}
	#footer p {padding: 0 10px;}
}

@media only screen and (max-width: 767px) {
	#header, #contactdetails {text-align: center; margin-top: 0;}
	.telephone {display: block; margin: 15px 0;}
	#logowrapper img {margin-bottom: 20px;}
	#footer a {padding: 20px 0;}
	#logoheader .custom {padding: 0 15px; float: left;}
	.item-page {text-align: center;}
}

@media only screen and (max-width: 350px) {
	#logoheader .custom {padding: 0 15px; float: none; width: 100%; flex: 100%; max-width: 100%;}
}

@media only screen and (min-width: 1200px) {
	.container {width: 1300px; max-width: 100%;}
}
